DB Save not working after back button

amber 18 Oct, 2013
Hi,

I have two forms.
The first form has a DB Save on it which works fine.(Data is entered to database)
The second form has a back button on it which redirects the user to the previous form.

Issue :
After hitting the back button, user is redirected to the previous form on which all the fields are filled.
But on clicking next data is not saved to database.

Please help.
GreyHead 18 Oct, 2013
Hi amber,

What is the 'Next' that you click on?

Bob
amber 21 Oct, 2013
Next is a submit button.
Everything is working now.
I realised that DBSave saves all data in the $form->data array.
And the value that I wanted when I hit back was in the $form['chronoform_data] array.
Just copied value from $form['chronoform_data] to the required field.🙂

Thanks.
This topic is locked and no more replies can be posted.