- Create a Gravity Form
- Add the fields you want the user to fill out
- Add a "Drop Down" field to your form. Edit this field and give it a Field Label of "Store Location" or something similar. Make the options for this drop down each store location, this won't be visible to the end user so make them short names.
- While editing the "Store Location" select the Advanced tab and set this field to be "Admin Only" under the "Visibility"
- While on the Advanced tab for "Store Location" also click the "Allow field to be populated dynamically" checkbox and give the field a parameter name of "location".
- Save Form
- Go to the Notification setup for this form and turn on and configure the Admin Notification. For the Send To Email choose "Routing" and configure the routing rules by entering the store managers email address and telling it to use that based on what location is selected from the Store Locations drop down you added above.
- Save Notifications
Now if you followed the steps above what you can do is when you link to the form you can pass the location via the query string and it will pre-populate the store location drop down... which won't be visible to the end user. Then the email will be routed to that location.
You pass the value to the form using the parameter name you setup on that field using the querystring, which should be "location". Here is what it would look like:
Ex.
http://mydomain.com/myform?location=newyork
I suggest make the options in the store location drop down one word with no spaces so it's easier to pass via the query string.
I would also suggest making the first option in the store location field a catch all and setup a routing rule for it in the notifications so that if they get to the form and no location is passed... it will go to someone specific.
I hope the above instructions make sense...
Posted 14 years ago on Thursday October 7, 2010 |
Permalink