Ok so I tried to make the subject as descriptive as possible.
anyway here is what I’m doing. first page has multiple forms with select fields. ( i need multiple forms because the final post has to be in a certain format depending on the type of form ). I’m useing a standard form to send the value to eform Form page where the passed data is filled into hidden inputs. the value of this is dynamically set by a snippet. now if someone were to cause an error in the form the page reloads without the value for the hidden field.
heres the code I used
Form 1
<form action="[~23~]" method="post">
<p>
<select name="product">
<option value="option_1_value">
option 1 text</option>
...
</select>
<input type="submit" value="Continue" />
</p>
</form>
page with ID 23 is
[!eForm? &formid=`FORM_ID` &to=`eMAIL` &tpl=`FORM` &fromname=`[+name+]` &from=`[+email+]` &report=`REPORT` &thankyou=`THANKYOU` &vericode=`0` &subject=`SUBJECT`!]
Form is
<form method="post" action="[~[*id*]~]">
<input type="hidden" name="formid" value="FORM_ID" />
<input type="hidden" name="torunyinfo" value="[[FormProductInfo]]" eform="torunyinfo::1::#REGEX /.*?/" />
Where [[FormProductInfo]] is
<?php
$fee=$_POST['product'];
return $fee;
?>
Result first time through the form
<form method="post" action="A183SBRF.html">
<input type="hidden" name="formid" value="FORM_ID" />
<input type="hidden" name="torunyinfo" value="option_1_value" />
...
but upon error the page reloads with this
<form method="post" action="A183SBRF.html">
<input type="hidden" name="formid" value="Tournament_registration" />
<input type="hidden" name="torunyinfo" value="" />
...
any ideas on how to get the value to stay?
thanks
SteveO