This question has been answered by donquicky. See the first response.
Use the &submitVar property to differentiate between the forms.
Use the &submitVar property to differentiate between the forms.
Hi Pronab!
Multiple forms with FormIt should work. Make sure your two forms and their fields come along with unique ids.
If you have multiple forms on a page, set the &submitVar property on your Snippet call to a name of a form element within the form (ie, &submitVar=`form1-submit`). This tells FormIt to only process form requests with that POST variable.
<!-- your snippet calls --> [[FormIt? ... &submitVar=`myform1`]] [[FormIt? ... &submitVar=`myform2`]] <!-- html myform1 --> <form ...> ... <input type="submit" value="send it" name="myform1"> </form> <!-- html myform2 --> <form ...> ... <input type="submit" value="send it" name="myform2"> </form>
what are your formit-calls and what's your form-markup now?
&fiarTpl = `fiarTpl[[!getReqparam? &type=`REQUEST` &name=`os`]]`