Inquiry area. With these actions, contact or inquiry forms, for example, can be submitted.
Actions overview
Actions
InquirySend
This action submits an inquiry form. The submitted entries are checked and the inquiry is processed. If processing fails, a corresponding error is returned so the user can correct their entries. Usage exampleUseful for embedding a contact form on a page through which customers can submit inquiries. After clicking “Submit”, the form is validated and the inquiry is transmitted. Parameters
Errors
If a captcha check is configured for the form and it fails, the action returns the error code
captchaFailed. Other field checks of the form (for example, the maximum length) also report formCheckFailed with the respective sub-code, for example dataChecker.maxLength.
Related modules, variables & methods
Example that creates the action, binds it to the form via a hidden input, and checks for success or error after submission.
InquiryCheck
This action checks the inputs of a form without actually submitting the inquiry. The checked field values are written back to$myField.value and can be reused in the frontend.
Usage exampleUseful for validating form inputs before final submission and giving the user direct feedback on their entries. Parameters
Error codes
The action itself does not return any error codes. It merely stores the submitted field values for evaluating the rules in the template. The actual check, including error codes, only takes place on submission with the
InquirySend action.
Related modules, variables & methods
Example to follow.