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>





