Hi Everyone
I have a multipage form with checkboxes.
When on a page a checkbox is checked and the user changes to the next page it is saved and shown normally.
When the user then changes back to the previous page to uncheck the checkbox and continuous to the next page the change is not saved! The checkbox keeps checked and the unchecking is not saved.
Is there something I have to do in a multipage form to make this work?
My multipage form works with jquery and I use event switcher to switch between pages (this solution here)
Thanks,
Best Regards
Dollique
I have a multipage form with checkboxes.
When on a page a checkbox is checked and the user changes to the next page it is saved and shown normally.
When the user then changes back to the previous page to uncheck the checkbox and continuous to the next page the change is not saved! The checkbox keeps checked and the unchecking is not saved.
Is there something I have to do in a multipage form to make this work?
My multipage form works with jquery and I use event switcher to switch between pages (this solution here)
Thanks,
Best Regards
Dollique
Hi Dollique,
I can't tell what is happening from the information here. You have to be careful with handling the arrays for Checkbox Groups, they need to be converted to strings for saving and converted back to display. If you have Handle Array Actions in your form other than before the final save that might be the cause of the problem.
What do you see when you add Debugger actions to the critical points?
Bob
I can't tell what is happening from the information here. You have to be careful with handling the arrays for Checkbox Groups, they need to be converted to strings for saving and converted back to display. If you have Handle Array Actions in your form other than before the final save that might be the cause of the problem.
What do you see when you add Debugger actions to the critical points?
Bob
These are single selection checkboxes with only one option (on or off).
Do I still have to handle them as arrays?
I don't really know how to use the Array handler, is there a tutorial for this?
Do I still have to handle them as arrays?
I don't really know how to use the Array handler, is there a tutorial for this?
Hi Dollique,
Ah OK, now i see the problem - an unchecked single checkbox doesn't return anything when the form is submitted. So any existing value is kept as there is no new value.
If you open the Checkbox element settings and scroll down there are settings for Enable Ghost - set that to Yes; and Ghost value - set that to the opposite of your checked value e.g. if the checked value is yes, make this no.
Then the Ghost value will be submitted when the box is unchecked and the record should be updated.
Bob
Ah OK, now i see the problem - an unchecked single checkbox doesn't return anything when the form is submitted. So any existing value is kept as there is no new value.
If you open the Checkbox element settings and scroll down there are settings for Enable Ghost - set that to Yes; and Ghost value - set that to the opposite of your checked value e.g. if the checked value is yes, make this no.
Then the Ghost value will be submitted when the box is unchecked and the record should be updated.
Bob
This topic is locked and no more replies can be posted.