<div dir="ltr">If it is for specific modules (and field) only then why not override the behaviour of a near match/text type field in those modules?<div><br></div><div>If it is about adding a UI type available in layout Editor as well, then thereĀ is much to be done. Such as in Reports, CustomViews, QueryGenerator etc..</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 22, 2020 at 4:12 PM Alan Lord <<a href="mailto:alanslists@gmail.com">alanslists@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I want to add a new UIType field to vtiger 7 that displays an html <br>
canvas element.<br>
<br>
Am I right in thinking I should register it vtiger_ws_fieldtype and if I <br>
give it a fieldtype of "canvas" then I can extend the Vtiger_Field_Model <br>
to load it?<br>
<br>
One thing I don't quite get is how in Detail Views the UIType template <br>
file does not seem to be used at all - it only seems to be called for <br>
Edit Views. So for Detail View do I need to modify the <br>
DetailViewBlockView.tpl for all/any modules where I might want to use my <br>
new field?<br>
<br>
And in terms of choosing a UIType _number_ how do we prevent possible <br>
collisions? I can choose something like 995 or whatever, but presumably <br>
another developer could also choose the same number without knowing?<br>
<br>
<br>
Cheers<br>
<br>
<br>
Al<br>
<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div>