When using "User Input task" od Custom task I'd like to be able to specify complex forms with validation to avoid users submitting incorrect values.

Now I have to use another task to validate input and fail it if something is wrong,
With an UI validator I could avoid task submission untill input form are proprpely filled in

Comments

  • Thank you for sharing your idea. Could you provide a detailed description of the scenario using a real-world example? That would give us better idea of the potential solution ideation.

  • We have the same challenge since years and we've already recommended to introduce a kind of postcondition similar to the precondition of a task.

  • Product Team : the input fields should allow the use of a regex, or even Jython code. Thanks for considering this validation idea.

  • https://ideas.digital.ai/devops/Idea/Detail/4196

  • Having the possibility to validate input fields, when there value has been changed by regex or Joython code ist fine, but it doesn't solve the problem, to validate input fields that belong on each other.

    Here is an example:
    * The user input task has 2 drop down lists (country and city)
    * The user selects one value from the first drop down list (country)
    * Next the user has to select a city from the second drop down list. Using the input field based validation, we can guarantee that the user only can select a city from the selected country.
    * But now the user changes the country again and clicks 'Complete'.

    This results in invalid data.

    Therefore it's absolutely necessary to execute a (post-)validation/condition when the user clicks 'Complete'.

    You also should keep in mind that the user doesn't need to fill out the form in the order of the input fields. SO he would also be allowed to select the city first (without selecting the country before).

  • I found another similar newer idea - https://ideas.digital.ai/devops/Idea/Detail/4347
    Also, I think this also ties into an idea I submitted - https://ideas.digital.ai/devops/Idea/Detail/4045