0

I followed this guide on how to pass a parameter through the URL in RsForm, and with it I tried to define default value of one box. Even though I followed that tutorial, my browser accepts the url but doesn't fill out the field.

example.com/cs?option=com_rsform&formId=13form[vyberte_vami_zvoleny_pobyt][email protected]

(BTW, the first box should get the parameter [email protected])

1
  • You're missing an ampersand (&) in the url currently: example.com/cs?option=com_rsform&formId=13&form[vyberte_vami_zvoleny_pobyt][email protected]. Are you sure that this all matches exactly? Oct 26, 2014 at 3:21

2 Answers 2

2

Your URL is wrong, it should only contain one question mark (?option=com_rsform). Subsequent URL parameters must start with &.

Try http://www.trebonlazne.cz/cs?option=com_rsform&formId=13&form[vyberte_vami_zvoleny_pobyt][email protected], it should work.

From the tutorial you mentioned:

IMPORTANT: If the parameter you are adding is the first one existing in the URL (when using SEF URLs), you need to add it using the ? character instead of &, as in the following example: http://www.mywebsite.com/index.php/form?form[email][email protected]

1

This is an example I have used for a hotel booking engine

example.com/page.jsp?HotelID={HotelID:value}&rateplanid={rateplan:value}&Rooms=1&DateIn={Check In:value}&Length={Nights:value}&Adults={Adults:value}&Children={Children:value}&submit=Submit

In this case, we use {} instead of [].

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.