The submit button on this form does nothing unless I remove style="display:none" from the div template=row . Why??
(the name each form control is dynamically populated with javascript, however, to simplify troubleshooting, I ran the form without javascript, and the problem boils down to whether there is a display tag there).
Here's what the Chrome console says:
bundleAn invalid form control with name='' is not focusable. bundleAn invalid form control with name='label' is not focusable. bundleAn invalid form control with name='unique' is not focusable
HTML:
<form method="POST" action="/add/bundle"> <p> <input type="text" name="singular" placeholder="Singular Name" required> <input type="text" name="plural" placeholder="Plural Name" required> </p> <h4>Asset Fields</h4> <div class="template-view" id="template_row" style="display:none"> <input type="text" data-keyname="name" placeholder="Field Name"> <input type="text" data-keyname="hint" placeholder="Hint"> <select data-keyname="fieldtype" required> <option value="">Field Type...</option> </select> <input type="checkbox" data-keyname="required" value="true"> Required <input type="checkbox" data-keyname="search" value="true"> Searchable <input type="checkbox" data-keyname="readonly" value="true"> ReadOnly <input type="checkbox" data-keyname="autocomplete" value="true"> AutoComplete <input type="radio" data-keyname="label" value="label" name="label" required> Label <input type="radio" data-keyname="unique" value="unique" name="unique" required> Unique <button class="add" type="button">+</button> <button class="remove" type="button">-</button> </div> <div id="target_list"></div> <p><input type="submit" name="form.submitted" value="Submit" autofocus></p> </form>
source share