<div dir="ltr"><div>Hi Alan,</div><div>This is what I would do</div><div>0. Choose a unique name, Pick2radio and number, 999, for our new UI Type</div><div><br></div><div>1. New script, Pick2radio.php, model it on the simple Picklist.php</div><div>Path</div><div>modules\Vtiger\uitypes</div><div><br></div><div>2. Pick2radio.tpl, model it on Picklist.tpl, UI transformation to radio logic goes here</div><div>Path</div><div>layouts\vlayout\modules\Vtiger\uitypes</div><div><br></div><div>3, Insert record into vtiger_ws_fieldtype with values, 999 and pick2radio (note the lower case)</div><div>SQL:</div><div>insert vtiger_ws_fieldtype set fieldtypeid=<maxvalue+1>, uitype=999, fieldtype='pick2radio';</div><div><br></div><div>Use the new UI number 999 in any new field earlier defined in vtiger_field as picklist type(16) to test the basic concept.</div><div><br></div><div>There is some more work to be done to handle the selection, new picklist entries etc, but i guess you got the drift</div><div><br></div><div>Regards, ST Prasad</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 13, 2015 at 5:12 PM, Alan Lord <span dir="ltr"><<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I want to make a new UI Type field for vtiger 6 which basically turns a set of picklist values into a group of Radio buttons so you can only chose one.<br>
<br>
Is there any documentation on creating new UITypes for vtiger 6?<br>
<br>
TIA<br>
<br>
Al<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">With best regards,<br><br>S.T.Prasad<br><br><a href="http://www.vtigress.com" target="_blank">http://www.vtigress.com</a><br>The Purr-fect mate for vTiger<br></div>
</div>