actions.inquirySend - Submit form
The inquirySend action controls the error messages when submitting a contact or inquiry form.
Example configuration actions.inquirySend
Parameter overview
| Parameter | Type | Description |
|---|---|---|
errorCodes | object | Configures the error codes used for problems during the action. |
captchaFailed | string | Error message output when the captcha check fails. |
missingEmail | string | Error message output when no email address was supplied although it is required. |
emailCheckFailed | string | Error message output when the provided email address is considered invalid. |
emptyForm | string | Error message output when the submitted form is empty. |
missingFormId | string | Error message output when no form ID was supplied. |
invalidFormId | string | Error message output when the supplied form ID is invalid or the form cannot be found. |
createInquiryFailed | string | Error message output when the inquiry could not be technically saved or forwarded. |
actions.inquiryCheck - Check form
The inquiryCheck action checks the current form content without submitting the form. It evaluates the rules defined in the linked RuleSet (see inquiry - Forms) and updates the field attributes ($field.required, $field.label, $field.defaultValue, $field.value, $field.visible) accordingly. For example, fields can be shown or hidden, marked as required or pre-filled with a default value.
The action can be used as an auto-submit on the <form> element so that a new check is automatically triggered on every input change. This allows the form to adapt dynamically to the user’s input.