• Resolved d.chatzimanolis

    (@dchatzimanolis)


    Hi,

    I would like to ask you if your plugin can help me with the following:

    I develop a website for a hotel which has two different forms created with CF7 plugin, one (short form) at my home page which has check-in, check-out, adults and room type fields and another at my online reservation page which has more fields for the user to fill before submitting his request. What I want to achieve is when the user fills the fields of the short form at the home page and clicks on a submit button called “BOOK NOW” to be redirected to the online reservation page which will include the bigger form and the dates, room type and adults of it to be already filled by the first step. So he will only have to fill his personal information into big contact form of this page and submit his final request.

    In short description, I want to pass values from the short contact form of my home page to the bigger one of my online reservation page.

    Is that possible you think with your plugin? Do you maybe have in mind any other plugin(s) that could help me with this?

    Thanx in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You could change the short form to use method=”GET” instead of method=”POST” and the form ‘action’ to first users to the longer form.

    Then use fields like the following in the long form:

    [dynamictext checkin-date "CF7_GET key='checkin'"]
    [dynamictext checkout-date "CF7_GET key='checkout'"]
    [dynamictext adult-count "CF7_GET key='adults'"]
    [dynamictext room-count "CF7_GET key='rooms'"]

    In the Mail tab of the longer form you will have:

    Check-in Date: [checkin-date]
    Check-out Date: [checkout-date]
    Adults: [adult-count]
    Room: [room-count]

    BTW, I am not the author, I just felt that I could answer this question.

    • This reply was modified 8 years, 1 month ago by daymobrew. Reason: Add code backticks for readability
    Plugin Author sevenspark

    (@sevenspark)

    Yeah basically you’d just submit the first form to the page with the second form, and it doesn’t really matter if you use GET or POST, you just retrieve those values via the CF7 DTX shortcodes in the second form as defaults.

    Remember, a form simply sends values to a certain URL via GET or POST methods. CF7 DTX allows you to retrieve those values and add them to the form via shortcodes.

    Hope that helps,

    Chris

    speedchimp

    (@speedchimp)

    Really appreciate a little more info here of possible please?

    Could you explain/show me an example of how I can sumbit the first form to the page with the second form please. Do I need to add something to the additional settings tab to do this?

    I need to take the post title from where the first form resides and pre-polutate the form on the second page? I can retrive and popluate on the first form using this:
    [dynamictext jobtitle “CF7_get_post_var key=’title'”]

    But I’m at a loss how to pass this over and get it to display in a field on the second form.

    Hope that makes sense and you can help.

    speedchimp

    (@speedchimp)

    Just a quick update. I really should read the other forum posts. The answers are there. Apologies.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Passing values from one Contact Form 7 form to another in WordPress’ is closed to new replies.