An invalid form control with name='partnerModelId' is not focusable.
Hi @perak,
I'm actually trying to hide an input in an insert form because it must be auto-incremented and not editable by the user.
I've set the Input group class with a{display: hidden} class but now I cannot insert elements in the collection.
If I set the the element to read-only, the attribute is not inserted in the collection.
@l1br3 see can you use form's hidden_fields property.
BTW, better practice is to set auto increment fields in Collection before.insert hook ( before_insert_code ) at server side, not in forms.
I didn't success put helper variable in hidden field, maybe I just did it in the wrong way ?
I'm going to look at the second solution too.
Thanks