Enter data and submit multiple times

emmexx 16 Dec, 2012
I'm creating a form where the user should be able to perform the following tasks:

[list]
  • Enter data in the form (say: name, address, email, ecc.)

  • Submit, view a thank message and beeing asked if he/she wants to enter data for one of his/her relatives.

  • If he/she wants to, be presented with the form with the values he/she already entered in some of the fields

  • Repeat until the last relative
  • [/list]

    Is there an easy way to accomplish that with CF4?

    Thank you
    maxx
    GreyHead 17 Dec, 2012
    Hi Maxx,

    You could use 'Data to Session' and 'Session to Data' actions to pass the data between forms and a Show Form action to reload the form (or a different one). Does that do what you need?

    Bob
    emmexx 17 Dec, 2012

    You could use 'Data to Session' and 'Session to Data' actions to pass the data between forms and a Show Form action to reload the form (or a different one). Does that do what you need?



    Thank you Bob, I thought about that but, as you probably know, the devil is in the details. 🙂

    What I don't understand is where to put a 2nd submit button to go from the thank message (in on submit) to the form again (passing data with 'Data to Session'/'Session to Data').

    But the way I imagine the flow could be wrong.
    I was thinking about something like:

    The user enters some data.
    The user submits
    The user views a thank message and a question "Do you want to enter data for one of your relatives?" and a button New relative.
    Clicking on the button New relative the user goes to the form, some of the fields are precompiled using Ssession to data
    The user submits again and so on.

    What I'm missing is: where should I put the New relative button? Should I create a new form?

    Thank you
    maxx
    GreyHead 30 Dec, 2012
    Hi Maxx,

    There are (as usual) several ways to do this. My inclination is to use a button in the standard Thank You message with a link to another form (or the same form with a parameter set up to say that it isn't a new entry).

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