Skip to main content
shalinim0003
May 24, 2023
Solved

The required field validation is not functioning properly.

  • May 24, 2023
  • 13 replies
  • 0 views

I have added some fields to the user interface (UI) and marked those fields as required. The UI that includes these fields has been merged with another UI. This combined UI is then linked to another UI that contains a "save" button. In the "save" button, I have set the validation parameter to true. However, after clicking the save button, the validation for the required fields is not being displayed.

    Best answer by stefanhelzle0001

    First, a button with validate=true will trigger any validation on the form.

    Second, the normal, Appian style way, is to define that interface as the process start form and then add that process model as page content.

    13 replies

    harshitb6843
    May 24, 2023

    By any chance, have you included validation groups on your interface or child interfaces anywhere?

    shalinim0003
    May 24, 2023

    No I did not include any validation group but I include some validation to the decimal field like below figure.

    May 24, 2023

    Can you maybe share some code or a screenshot?

    Just guessing what might help:

    - Are all the required fields shown (showWhen=true) when the save button is clicked?

    - Is the validate parameter in your save button set to true?

    shalinim0003
    May 24, 2023

    stefanhelzle0001
    Brainy
    May 24, 2023

    What exactly do you mean when saying that some UI is "merged" and "linked"?

    In general, a button with validate=true triggers all validations on all visible fields.

    shalinim0003
    May 24, 2023

    The save button and dropdown fields are located in separate UIs. During testing at the UI level, the validations are being displayed correctly. However, when the site is accessed, the validations are not appearing as expected.

    stefanhelzle0001
    Brainy
    May 24, 2023

    How did you add this UI to that site? Are you aware that site pages of type interface do not support rule inputs?