Get Is Dynamic Form Valid

Get Is Dynamic Form Valid

Kuika's Get Is Dynamic Form Valid action is used to check whether a Dynamic Form element in the user interface is valid. This action is preferred to determine whether the mandatory fields of the form have been completed correctly and in full. It is commonly used in applications that require form validation before operations such as registration, submission, or calculation.

This action is currently available in beta version and is still under development. It is recommended to test it carefully before using it in a production environment.

The action only works according to the validation rules defined in the Dynamic form element. Fields marked as ‘IsRequired’ at the attribute level are included in this check.

Technical Features

  • Form Validation (Validation Panel): Get Is Dynamic Form Valid action works with the following single parameter:
    • Dynamic Form Component (Required): The dynamic form component whose validity will be checked. A Dynamic Form defined in the UI must be selected.
  • Data Source Compatibility: The parameter can only be a Dynamic Form element defined via Symbol Picker > Components.
  • Action Result: The action result returns Boolean (true/false):
    • true: The form is valid.
    • false: There are missing or incorrect fields in the form.
  • Web Application Support: The Get Is Dynamic Form Valid action works in web applications.
Get Is Dynamic Form Valid Action Application Steps

1. Adding a Dynamic Form Element

  • A Dynamic Form element containing dynamic attribute fields is defined on the form.
  • Required (IsRequired) fields are specified in the attribute definition.

2. Define the Validation Action

  • A button such as ‘Submit’ or ‘Continue’ is created.
  • When the button is clicked:
    • + ADD ACTION > OnClick > EAV > Dynamic Form > Get Is Dynamic Form Valid action is added.
  • Parameter → Dynamic Form Components > Dynamic Form name

3. Conditional Action Based on Action Result

  • Using the If action:
    • If the result is true → Save Record, Navigate and other actions can be triggered.
    • If the result is false → User notification actions can be executed.
Usage Scenario: Save if the form is valid

A user fills out a dynamic application form and clicks the ‘Save’ button.

  1. When the button is clicked, the Get Is Dynamic Form Valid action is executed.
  2. If the form is not valid, the user is shown the warning ‘Please fill in all required fields.’
  3. If the form is valid, the data is retrieved with Get Entity Value from Dynamic Form and saved to the database.
Get Is Dynamic Form Valid Action Advanced Customisations
  • Automatic Focus on Fields: If there are invalid fields, the user can be directed to the incorrect field.
  • Clear First, Then Check: Old warning messages can be cleared first with the Clear action.
  • Use in Form Steps: In multi-page or tabbed forms, if each step is valid, the user can proceed to the next step.

Technical Risks

  • Attribute Settings: If the IsRequired or data type settings of attributes are not set correctly, validation may be incomplete.
  • UI Validation Only: This action only covers controls on the UI; it does not include business rules at the database level.

The Get Is Dynamic Form Valid action is the basic validation mechanism that makes form-based transactions secure and controlled on the Kuika platform. It can be used effectively in conjunction with other actions to ensure that users enter complete and error-free data.

Other Related Content

No items found.

Glossary

No items found.

Alt Başlıklar