HI Bob,
Created forms with chronoforms V5 containing checkbox group, textboxes, etc,...
Checkbox group boxes labels are coming from a table via dynamic data read.
Ticked checkboxes correclty saved ( as well as other fields) in the database via handle array and db save action.
Issue: When loading form ( access the record via id) , checkbox group boxes do not load ( blank boxes only) while other fields are correctly loaded.
Is there any need for some "explode" coding ? The handle array apparently only implode.
Best rgds,
simelas
Created forms with chronoforms V5 containing checkbox group, textboxes, etc,...
Checkbox group boxes labels are coming from a table via dynamic data read.
Ticked checkboxes correclty saved ( as well as other fields) in the database via handle array and db save action.
Issue: When loading form ( access the record via id) , checkbox group boxes do not load ( blank boxes only) while other fields are correctly loaded.
Is there any need for some "explode" coding ? The handle array apparently only implode.
Best rgds,
simelas
Hi simelas,
In CFV4 there was a option box you could use. I don't see that in CFv5 - but I also haven't seen the problem reported here before :-(
Please add a Debugger action in the On Load event just before the HTML (Render form) action and see what that shows.
Bob
In CFV4 there was a option box you could use. I don't see that in CFv5 - but I also haven't seen the problem reported here before :-(
Please add a Debugger action in the On Load event just before the HTML (Render form) action and see what that shows.
Bob
Hi Bob,
I had played with debbuger and it showed that data is correctly loaded by load action but do not transfer to the checkbox. Hence wondering if some explode is needed somewhere or maybe missing in CFV5 to properly populate checkboxes. (or if i missed something...)
( Same form in CFV4 works perfectly well as expected).
Best Regards,
Simelas
I had played with debbuger and it showed that data is correctly loaded by load action but do not transfer to the checkbox. Hence wondering if some explode is needed somewhere or maybe missing in CFV5 to properly populate checkboxes. (or if i missed something...)
( Same form in CFV4 works perfectly well as expected).
Best Regards,
Simelas
Hi simelas,
Please try adding a Custom Code action to the form On Load event after the DB Read action and before the HTML (Render Form) action with code like this:
Bob
Please try adding a Custom Code action to the form On Load event after the DB Read action and before the HTML (Render Form) action with code like this:
<?php
$form->data['input_name'] = explode(',', $form->data['input_name']);
?>
Replace input_name with the name of the array input and, if necessary, change the ',' to match the separator used in your string.
Bob
This topic is locked and no more replies can be posted.