You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FormNode: {form detached name} for layouts that nest other forms
HTML forbids nested <form> tags, so a layout embedding a component that
renders its own <form> can't wrap its controls in another <form>. The
detached keyword emits an empty <form>...</form> at the opening position
and links every control back to it via the HTML5 form= attribute
(applied in Runtime::item()), so inputs submit correctly wherever they
sit in the DOM. Controls in nested containers and {form scope} inherit
the same link.
Unlike {form scope}/{formContext}, detached does render a <form>, so it
still accepts arguments, which apply to that tag.
Throws InvalidStateException when detached is used with a non-Form
Container or a form without an id.
0 commit comments