Support » Plugin: Contact Form 7 » Dynamically link to different contact forms on one page, from other pages

  • I currently have four “job” pages, each of which have a button containing a PHP get variable, which loads the “apply” page and fills out one of the fields using the variable:

    Button on each “Job” page:
    [button color=”accent-color” size=”medium” url=”/careers/apply?variable=variable_name” text=”Button”]

    “Apply” Page:
    [contact-form-7 id=”1467″ title=”Contact form 1″]

    However, rather than just have one contact form for all of the four pages to use, I’d like to have 4 different contact forms, and for each form to be used depending on which of these 4 pages linked through to the “apply” page so that each form can display different options, but without needing to have 4 separate “apply” pages. To give a (hopefully) clearer idea, I’m thinking it would work a little something like this:

    Button:
    [button color=”accent-color” size=”medium” url=”/careers/apply?variable=variable_name”&form=”1467″ text=”Button”]

    “Apply” Page:
    [contact-form-7 id=”form” title=”Contact form 1″]

    Is there an easy way to do this? I’m looking to avoid having 4 separate apply pages for each contact form!

    Thanks.

    https://wordpress.org/plugins/contact-form-7/

  • The topic ‘Dynamically link to different contact forms on one page, from other pages’ is closed to new replies.