0 Setting Form Values Based on URL String 2 Don Smallman posted 8 Years Ago Hi, Does anyone know if it is possible to set a forms Values Based on URL String? I someone clicks on a button on our site can I send them to the contact form and preset some of the form values, like "I Committed My Life To Christ"? Thanks!
Don Smallman 8 years ago Hi Jon! Yes that query string is exactly what I am looking for. Will it work with the Topic or Campus fields, since the are dropdowns? I can't seem to get it to work.http://www.therockaz.org/ContactUs?FirstName=Ted&LastName=Decker&Topic=GeneralThis works but only with General Inquiry. How can I get it to work with other Topic Selections?
Don Smallman 8 years ago I got it! I need to use the actual Text Value in the Workflow. Like the Text Value for "Talk to a Pastor", is just Pastor. So, the following query string works.http://www.therockaz.org/ContactUs?FirstName=Ted&LastName=Decker&Topic=PastorThanks!
Jon Edmiston 8 years ago It's definitely possible, but you have to start looking at how attributes are stored. For example a campus attribute is an attribute with the field type of Campus which stores it's value as a guid of the campus. So you'd use:http://www.therockaz.org/ContactUs?FirstName=Ted&LastName=Decker&Topic=Website&Campus=76882ae3-1ce8-42a6-a2b6-8c0b29cf8cf8You can see how each of the field types stores it's value here: http://www.rockrms.com/page/736As a tip the topic is a single select so you can just look at the value on the select option for the value you need.
Don Smallman 8 years ago Hi Jim! It is the RockRMS Contact Form. http://www.therockaz.org/ContactUs. Will the above still work and which part of the script is the Form Field name to set?
Jim Michael 8 years ago I'm not really sure, unfortunately... I haven't had time to look at the form but was just pointing out that the query parameters are available via Lava ;-) Hopefully someone who knows more can jump in and fill in the blanks.
Don Smallman 8 years ago Ah! I understand. Thanks for the info. Hopefully someone knows. It is not necessary, but would be helpful.