Runtime Error

FetchFormNotFound

No form with the provided selector could be found in the DOM. When specifying a form selector using the selector option in the @get() action, the form must already exist in the DOM.

Example:

1<button data-on-click="@post('/endpoint', {contentType: 'form', selector: '#myform'})"></button>

See the docs for the @get() action.