Have a curly one for those who know more then me.
Picture this: A site has a form to submit a warranty registration. Capture: Name, email, street address, model name and serial number.
All good,this first part is a no-brainer. Fill out the stuff, submit, fire off thankyou emails to client and company then return to a generic "thanks" page.
What the client seeks though, is rarely, straight forward but must be achievable.
Let's alter the params for a moment. Let's say the user has bought several machines and they want to register each of them. Initial thought is to create say 6 duplicate fields in Freeform (6 X machine name, 6 X serial name) and display them – but a tad redundant to show all 6 if they bought 1 or what happens if they bought 12 ? Plus, too many fields to manage in the backend.
It was suggested that the user fills out all the "personal" details and we only display 1 set of machine/serial fields.
The user then has the choice of 2 buttons, either #1 "submit, I only bought one" or #2 "submit this one and then I'll add another"
If they choose option #2, how could you bring back all the previous "personal" details pre-populated and present a new, empty set of fields for machine/serial#?
Long story short, user submits one entry for one machine (one record per machine, technically speaking), if they choose to submit another, their "personal" details are pre-populated ready for another product registration - how ?
As I write, I see stash in the equation but not sure how to set the variables until they're posted… a good Friday question :)