Access.js
gives you the right tools to achieve this without even a single line of code,
but only applies basic validations over the fields. If you want to implement your own
logic, it will only require a few more lines of code (pinky promise)Access.js
gives you the right tools to achieve this without even a single line of code,
but only applies basic validations over the fields. If you want to implement your own
logic, it will only require a few more lines of code (pinky promise)submit
event, onFormSubmit
allows
you to intercept the entire form and do whatever you want with it, and even raise
errors when needed.@
char (this is a really
basic example, don't do this in production), and if not, raised an error on the
username
field with a custom messagepassword
)
or add an object with { fieldKey, message }
if you want to display a custom error message.onFormSubmit
event handler will be considered
as an error, so if you don't detect any error inside the form, don't return
anything or return something nullish like an empty array or null
.resolve
and reject
result in a form error if an array with fieldKeys or
objects is provided.Access > Settings > Third-party integrations
:password
field error in every
response, you'll be able to see the result of the webhook in your browser's network
tab inside a submit
network item: