The Community forums are being phased out in favor of a new Slack group.
Add your email address below to get an invitation to join the community slack group

Slack Signup
Newsletter Optin
Help Desk

Passing value through URL

Labels

This Discussion is public

Notifications

I was hoping someone in the forum here might be able to help me figure out how to pass a variable to a formidable form using the url.

I want a value to be default based on a tablet I've assigned to our drivers.
The bookmark they would use would include the value .... normally could do something like this:

Trips


To pass the value 2901 to the car field.
I can't figure out how to do this with the formidable form.
I've tried using the ID number as the parameter name and that doesn't work.

This documentation should help: https://formidableforms.com/knowledgebase/using-dynamic-default-values-in-fields/#kb-get-a-parameter-from-the-url

Hi Stacey

I don't see a "car" field in the form you are referring to. However I will use the "Booking Number" field in my example below to try explain. This will pass 2901 as the Booking Number.

Pass a variable using a URL

Step 1: In the Build section of your form put the following inside the text block for Booking Number

[get param=bn]

(bn is now the parameter to use in your URL for the value of that field. You could use something more descriptive or less descriptive like [get param=b] the shorter the better as it reduces the length of the url)

Save the form

Step 2: Your URL will now look like this:

http://www.drivemyride.ca/trips/?bn=2901

To populate multiple fields in your form using a URL simply add more get param items in the form build. Then construct your URL to add the extras with an ampersand "&" like this:

http://www.drivemyride.ca/trips/?bn=2901&km=120000

(In the form build in the Kilometers field you would use [get param=km])

Hope this helps.

I notice that your site is not SSL secured. If your site were to be SSL secured then using http:// instead of https:// in the URL will cause a problem. So once you change to SSL remember to change the URL accordingly.

Discussion closed.