Forums

Multi pages form and insert and update a record

graaooor 24 Sep, 2015
Hello,

I need some help to resolve a problem with multi pages form.

1 - The first page show a form with 4 fields : firstName, lastName, email, zip code.
All fields are obligatory.
When the user submits the form, a record is save in the database, an email is sent.
Then the second page is shown. No problem for me
.
2 - The second page is shown to the user and invite him to complete his informations : The phone, the address, some options, ... if he wants to.
This page is not obligatory. The user can close the page when he wants.
But If one field (or more) has a value (for exemple the user gives his phone and validate the form), I want to update the record which was inserted in the first page.

To resume :
- The first page : Obligatory fields and insertion of a new record
- The second page : Facultative but if a field has a value, update the record.

How can I do that ?
Thanks for your reply.
GreyHead 24 Sep, 2015
Hi graaooor,

Please save the id of the new record in a hidden input in the second form. That should allow ChronoForms to update the record with the new data. Please see this FAQ for more info.

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