What do you mean about empty after submission? Successful submission or unsuccessful?
- Successful submission
Is the math showing on the form when you return to it after submission?
- Yes, everything is there: The math question and the data I inputted.
Also, try email:email:required or simply email:required in the validation.
- Tried both, no effect. However, first of the email should be filled (:required), then validated as an email of proper format (:email). So email:required:email should be correct, isn't it?
What exactly is the % for in the tag?
- It is a
translated string.
By empty I mean that the fields fi.op1, fi.op2 and fi.operator are just empty
<input type="hidden" name="op1" value="[[!+fi.op1]]" />
<input type="hidden" name="op2" value="[[!+fi.op2]]" />
<input type="hidden" name="operator" value="[[!+fi.operator]]" />
=> value of hidden fields are empty
<label for="cf-math">[[!+fi.op1]] [[!+fi.operator:is=`-`:then=`minus`:else=`plus`]] [[!+fi.op2]] =</label>
=> Label reads "[SPACE] minus/plus [SPACE] ="
So math fields are blank.
Again, this is a one-page portfolio site so the contactform redirects to the same site like this:
<form method="post" action="#contact" id="contactform">
[ed. note: frisko last edited this post 10 years, 9 months ago.]