Hello!
I have found that little bug this morning.
Seems that there were some topic talking about this, but a little bit old and according to Max, solved.
So here I am :
On Load event
Custom code
Show Html
Preview
Radio box
Label Text : Radio box
Field Name : rb_1
Field Default Value : {choix}
Options :
0=non
1=oui
2=peut-être
Check box group
Label Text : Check box
Field Name : cb_1
Field Default Value : {choix}
Options :
0=non
1=oui
2=peut-être
When I test the form, the radio box value checked by default is 0 (for "non") and idem for the check box group.
However, if I set "Field Default Value : 2", it's working, but I need the default value match with some data loaded (for a more complicated form).
Any help would be appreciable.
Thanks
Florence
I have found that little bug this morning.
Seems that there were some topic talking about this, but a little bit old and according to Max, solved.
So here I am :
On Load event
Custom code
<?php
$form->data['choix']=2;
?>
Show Html
Preview
Radio box
Label Text : Radio box
Field Name : rb_1
Field Default Value : {choix}
Options :
0=non
1=oui
2=peut-être
Check box group
Label Text : Check box
Field Name : cb_1
Field Default Value : {choix}
Options :
0=non
1=oui
2=peut-être
When I test the form, the radio box value checked by default is 0 (for "non") and idem for the check box group.
However, if I set "Field Default Value : 2", it's working, but I need the default value match with some data loaded (for a more complicated form).
Any help would be appreciable.
Thanks
Florence