Quantcast
Channel: Topic Tag: contact-form | WordPress.org
Viewing all articles
Browse latest Browse all 5994

Jeremy Herve on "[Plugin: Jetpack by WordPress.com] Linking to a Specific Contact Form's Drop-down Option from another Page"

$
0
0

Yes, you can add parameters to each URL, that will pre-fill the form and direct you to the right field on the page.

Here is an example:
https://jeremy.hu/contact/?g242-websiteurl=http://google.com#g242-websiteurl

As you can see, I've added 2 parameters to that URL:

  1. /?g242-websiteurl=http://google.com tells me the field using ID g242-websiteurl should be pre-filled with http://google.com
  2. #g242-websiteurl tells me the page should jump to the section using ID g242-websiteurl

Obviously the end-result isn't that interesting on my site, because the page is so short that you reach the end of the page before you reach ID g242-websiteurl. :)

You can use your browser inspector to find out the ID associated with each field, like so:
https://dailypost.wordpress.com/2013/07/25/css-selectors/

I hope this helps.


Viewing all articles
Browse latest Browse all 5994

Trending Articles