Last modified: 2012-01-23 19:19:46 UTC
Including {{#forminput:}} in a form definition itself for two different forms results in one input field not being surrounded by <form></form> elements. In this specific case, the two statements and their respective output are: {{#forminput:form=Organisation|button text=add it|query string=namespace=Organisation|autocomplete on namespace=Organisation|popup}} }} resulting in: <p> <input id="input_1" class="autocompleteInput createboxInput formInput ui-autocomplete-input" type="text" autocompletesettings="input_1" value="" size="25" name="page_name" autocomplete="off" role="textbox" aria-autocomplete="list" aria-haspopup="true"> <input type="hidden" name="form" value="Organisation"> <input type="hidden" value="Organisation" name="namespace"> <input type="submit" value="add it"> </p> <p> </p> <div id="div_1" class="page_name_auto_complete"> </div> <p></p> and on the other hand: {{#forminput:form=Location|button text=add it|autocomplete on category=Location|popup}} }} resulting in: <form class="popupforminput" method="get" action="/wiki/Special:FormStart" name="createbox"> <p> <input id="input_2" class="autocompleteInput createboxInput formInput ui-autocomplete-input" type="text" autocompletesettings="input_2" value="" size="25" name="page_name" autocomplete="off" role="textbox" aria-autocomplete="list" aria-haspopup="true"> <input type="hidden" name="form" value="Location"> <input type="submit" value="add it"> </p> <p> </p> <div id="div_2" class="page_name_auto_complete"> </div> <p></p> </form> Since no form elements surround the first (organisation) field, the form this code resides in will be submitted.
Hi, I can't reproduce this problem - is this still an issue? If so, what version of Semantic Forms are you using?
Marking this bug as "worksforme". Feel free to re-open it if you think it's still an issue.