Unfortunately, the username and password you have entered do not match!

Registration

Unfortunately, this username is already taken!

Unfortunately, this e-mail address is already used!

Please retype the verification code.

All fields are required

RSForm!Pro - How do I pass a parameter through the URL and how can I catch it ?

How do I pass a parameter through the URL and how can I catch it ?

You can add any parameter in the URL of a form. Parameters are added at the end of the URL. For example:
www.mywebsite.com/index.php?option=com_rsform&formId=1&myparameter=myvalue

In "Default Value" field of the form component you can add any PHP code you want. Just remember that the <code> tag is mandatory. Below you can find an example:

//<code>
$myparameter_value = JRequest::getVar('myparameter');
return $myparameter_value;
//</code>

You can address multiple cases too (check if the parameter has been set or not).

//<code>
if (JRequest::getVar('myparameter') != '')
{
 $myparameter_value = JRequest::getVar('myparameter');
 return $myparameter_value;
}
else
{
 return 'No value';
}
//</code>
Feedback