• Resolved jonny-s

    (@jonny-s)


    Hi folks, my use-case of multi-step form is a list of contacts, each of them should have a form.

    I generate the list entries by a spreadsheet, containing a form with hidden field, auto-filled by shortcode-tag, which leads to a second page which is for filling in the message.

    This way, the contact address remains secret. And there is no need to adjust the form every time the contacts in the list changes.

    I hope this was clear.

    But this way I have a lot of first-part forms, all directing to one single last-part form. When navigating forward and backward, the hidden field is filled with the first input and does not change while trying to use another first-part form.

    How to clear the first step hidden-input in a multi-step-form? (so that the person from the last hit ‘contact’ button will get the message, not the from the first hit button)

    Thanks a lot for any solution!

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author webheadcoder

    (@webheadllc)

    It sounds like you have multiple forms all leading to a final form. Is that right? Can you try having the hidden-input be the same name on all the various first-part forms? That would overwrite any previous values of the same name.

    Thread Starter jonny-s

    (@jonny-s)

    Hi, thank you for your reply!
    Yes, you got the setting. =)

    Of course, the name is same across all entry-forms.
    The shortcode is: [contact-form-7 id=100 mail='[email protected]'] (mail address different in each from)
    entry-forms: [dynamic_hidden mail default:shortcode_attr]

    and navigating back, using another form (they are all on the same page), the mailadress will not change.

    Plugin Author webheadcoder

    (@webheadllc)

    Sorry for the delay. I think the only way to do this is to have some custom javascript that runs after the CF7 MSM plugin code and overwrites the mail field. The plugin will always populate any submitted fields after the CF7 form is generated.

    You can make the mail field into a dropdown field and dynamically show/hide relevant fields. It would combine all forms into one. Then when the user goes back they would have to manually change the field to see the other fields.

    Thread Starter jonny-s

    (@jonny-s)

    Thank you for your response. I’ll have to think about.

    Putting all together in one form would require to adjust the form each time I add a new contact in my list. That was, what I intended to avoid.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.