AnsweredAssumed Answered

how to add check box to edit view using a php code

Question asked by ymadu on Sep 11, 2015
Latest reply on Sep 11, 2015 by ymadu
I'm trying to add a check box to an edit view. and i want it to add using a php code. I used this below code and it shows a text field not a checkbox. how can i add a check box. ?

code:
1 =>           array (
            'name' => 'create_c',
            'customLabel' => '<div {if $fields.my_list_c.value != 0} style=\'display:none\'{/if} id=\'create_c_label\'>{$MOD.LBL_CREATE_C}</div>',
            'customCode' => '<div {if $fields.my_list_c.value != 0} style=\'display:none\'{/if} id=\'create_c\'><input name="create_c" id="create_c" ></div>',
          ),

Outcomes