-
AuthorPosts
-
January 3, 2022 at 12:10 pm #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.January 4, 2022 at 7:06 am #1334143Hey 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=1234To 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,
IsmaelJanuary 6, 2022 at 2:38 am #1334447Hi Ismael.
Will look at it and keep you posted.
Thank youJanuary 6, 2022 at 9:20 am #1334493Hi,
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,
RikardJanuary 6, 2022 at 9:55 am #1334500Hi 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.January 6, 2022 at 1:12 pm #1334522Hi,
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 -
AuthorPosts
- The topic ‘Contact form page refering from another page’ is closed to new replies.
