I have a form where users can send info to me and I have 4 checkbox arrays with 5 - 8 checkboxes each.
When somebody fill out the form and submit it, it saves to a table in the database. And so far it works like a charm. I have this form connected thur ChronoConnectivity and let users view what they have sent to me.
Now to my problem. When a user "opens" his/hers post it shows up in the same form as before. ckeckboxes are filled as they where entered to start with. But i the user uncheck all checkboxes it will not be saved to database. There are no problem with unchecking all but one.
I have search thru this forum and understand that when submitting a changed form no update to empty fields will be done. And I have seen a fix for this by making a field_array and merge it to Post. But I can NOT figure out how to do that.
Can anyone please help me out?
When somebody fill out the form and submit it, it saves to a table in the database. And so far it works like a charm. I have this form connected thur ChronoConnectivity and let users view what they have sent to me.
Now to my problem. When a user "opens" his/hers post it shows up in the same form as before. ckeckboxes are filled as they where entered to start with. But i the user uncheck all checkboxes it will not be saved to database. There are no problem with unchecking all but one.
I have search thru this forum and understand that when submitting a changed form no update to empty fields will be done. And I have seen a fix for this by making a field_array and merge it to Post. But I can NOT figure out how to do that.
Can anyone please help me out?
Thank you for quick respons.
That is the problem. I don“t know where to start. ChronoForm and ChronoConnectivity has done the most for me so far. And my skills in this are not good enough.
This is a script I found here.
This does not work. I have put it in tab "Form Code" and under "On Submit code - before sending email"
Jerker
That is the problem. I don“t know where to start. ChronoForm and ChronoConnectivity has done the most for me so far. And my skills in this are not good enough.
This is a script I found here.
<?php
$check1 =& JRequest::getString('check1', '', 'post');
JRequest::setVar('check1', $check1);
?>
This does not work. I have put it in tab "Form Code" and under "On Submit code - before sending email"
Jerker
This topic is locked and no more replies can be posted.