Forums

Text link going to form selects field input value?

hominid4 22 Mar, 2012
I'm creating a page similar to the below site where it'll be just a standard Joomla article listing events and will have a "register" text link next to each event. Clicking the register link takes them to the registration form (created with ChronoForms) page that will collect their info and what event they're registering for. This form results is just emailed to the client.

In the form there is a dropdown (or whatever is needed) of all the events. What we'd like is when they click the text link it pre-selects that event from the dropdown for them; as it does with the below site. I tried copying what they did but it's not working.

<!-- w --><a class="postlink" href="http://www.acedrivingidaho.com/calendar.php">www.acedrivingidaho.com/calendar.php</a><!-- w -->

Please click on "To register for this class click here" at the above link.

Thanks!
J! 2.5.X
ChronoForms 4
GreyHead 24 Mar, 2012
Hi Hominid4,

ChronoForms will do the pre-selection for you if the name of the select box matches the paramtere passed in the link so IF the link is ?classSession=2012,6,3 AND your select box name is classSession AND there is an option with the value 2012,6,3 then it will be pre-selected.

Always provided that the Show HTML action has Republish data set to Yes (which it does by default).

Bob
This topic is locked and no more replies can be posted.