Validation
The form widget includes a validation function to ensure that the data users enter meets your specific requirements. This helps prevent errors and guarantees data accuracy.
Last updated
The form widget includes a validation function to ensure that the data users enter meets your specific requirements. This helps prevent errors and guarantees data accuracy.
This is the section where you set up the input validation rules for your form fields.

Please make sure you have already created a form and added a field to it, as shown in the following image.

Click the "Setup Komponen" (Setup Component) button.
The form setup panel will appear, allowing you to configure the field.

Select and choose the appropriate form type (e.g., standard, time, media, camera, location, dynamic, built-in, or external/internal data).
Once selected, click "Next" to proceed to the validation stage.

Now, define the type of validation for your field. You have 6 validation options:
Required: When activated, this means the field cannot be left empty and must be filled out.
Text: When activated, you can set the minimum and maximum allowed length for the text.
Number: When activated, you can set the minimum and maximum allowed numerical value.
Image: When activated, you can set the maximum file size for an uploaded image.
File: When activated, you can set the maximum file size and the allowed file formats (e.g., .pdf, .doc) for upload.
External Validation: When activated, you can set up validation based on an external endpoint (API). This endpoint must return a JSON response in this format: {'status': true/false, 'msg': 'Success Message'}.
Last updated
