Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1334054

    Hi,
    I am trying to use ONE (only) booking inquiry page, with a different form each time it is referred from a specific page.
    – page1 >>> /inquiry-page?page1
    – page2 >>> /inquiry-page?page2
    Like here https://www.blacktomato.com/destinations/japan/best-of-japan/ and “Start Planning Here” button….Bringing to https://www.blacktomato.com/make-an-enquiry/?country=japan&referer=88488
    Any idea how to do that with Enfold or a plugin may be.
    Thank you.
    Best for this year.
    X.

    #1334143

    Hey koomo,

    Thank you for the inquiry.

    You can use a plugin such as the Contact Form 7 and create a custom shortcode that retrieves a certain contact form based on the value of a query parameter.

    This is an example of the default contact form shortcode.

    [contact-form-7 id="1234" title="Contact form 1"]
    

    You can create another custom shortcode based on the default one and instead of embedding the value of the id attribute directly, you will retrieve the value of a specific query parameter from the URL and use it as the contact form ID.

    Example:

    [contact-form-7 id="'. $_GET["contact_form_id"] .'" title="Contact form 1"]
    

    The URL may look something like this.

    https://site.com/form?contact_form_id=1234
    

    To learn more about custom shortcodes, please check this documentation.

    // https://codex.wordpress.org/Shortcode_API

    Please note that this kind of customization is beyond the scope of support and additional help from third party developers might be necessary.

    Best regards,
    Ismael

    #1334447

    Hi Ismael.
    Will look at it and keep you posted.
    Thank you

    #1334493

    Hi,

    Thanks for the update. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

    #1334500

    Hi Rikard,
    Haven’t had time to work on it.
    But I trust you and it should be ok.
    Please close.
    Thank you fr your support.

    #1334522

    Hi,
    Glad Rikard was able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Contact form page refering from another page’ is closed to new replies.