Thanks very much Andrew.
I tried it with your example, but unfortunately it doesn't work.
I think it would work if I submit the form to a database.
But I don't submit anything on the 1st Form. My 'Next' button
should only open a new form with some parameters from textfields or Select lists from the 1st one.
function mainFunction(pw)
{
if(pw==2)
{
$test=ff_getSubmit('pw');
//var test = ff_getElementByName('textfield').value This would nice if it would work. But I know that this is not possible :-(
ff_redirectParent('{mossite}/index.php?option=com_facileforms&ff_name=PW_input&ff_param_test=$test&Itemid=-1');
}
In the Initialization Script of the 2nd Form, I've got this code
ff_getElementByName('newtextfield').value = $test
I hope there are no big errors in my logic :-/