<br><br><div class="gmail_quote">On Mon, Oct 8, 2012 at 6:46 PM, Adam Heinz <span dir="ltr"><<a href="mailto:amh@metricwise.net" target="_blank">amh@metricwise.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Sat, Oct 6, 2012 at 1:23 AM, Ramya Banglore <<a href="mailto:ramya.banglore@gmail.com">ramya.banglore@gmail.com</a>> wrote:<br>
> Can anybody tel me,uitype for checkbox, i want to create a field for<br>
> checkbox<br>
<br>
</div>Hi ,<br></blockquote><div><br></div><div>i am able to create a field under Calendar module by using below script for custom field under "to do" ,field created but i can't able to see,where it is created , can anybody tel me please................................. </div>
<div><?php <br>ini_set('display_errors', true);<br> ini_set('error_reporting', E_ALL & ~E_NOTICE & ~E_DEPRECATED);<br>require_once('vtlib/Vtiger/Module.php');<br>include_once('vtlib/Vtiger/Utils.php');<br>
include_once('vtlib/Vtiger/Menu.php');<br>require_once('vtlib/Vtiger/Block.php');<br>require_once('vtlib/Vtiger/Field.php');<br>$Vtiger_Utils_Log = true;<br>$module=Vtiger_Module::getInstance('Calendar');<br>
//$module=Vtiger_Block::getInstance('LBL_USERLOGIN_ROLE',$module);<br>$block = Vtiger_Block::getInstance('LBL_CUSTOM_INFORMATION',$module); <br>$field=new Vtiger_Field();<br>$field->label='Color';<br>
$field->name='color';<br>$field->table='vtiger_activity';<br>$field->name='color';<br>$field->columntype = 'VARCHAR(50)';<br>$field->uitype = 13;<br>$field->typeofdata = 'V~M';<br>
$block->addField($field);<br>$field->setPicklistValues( Array ('Dept1', 'Dept2','Dept2','Dept4'));<br>//$block->save($module); <br>$module->initWebservice();<br><br>echo 'Code successfully executed';<br>
?> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div><br>