Skip to main content

How to use the new Input Validations?

Comments

11 comments

  • Official comment
    Johan Häggqvist Community manager
    Guardian (Purple)

    Hi Alexandre!

    You can trigger the validations in a workflow by using the Perform Validations Activity. This will activate all validations in a view.

    There are also two parameters in this activity.

    Validated = True, False (True meaning view contains no errors)

    ValidationErrors = String with all validation errors.

  • Alexandre Luis

    Hi Johan!

    I ended up managing this one!

    Now the problem is the Dialog....

    For instance, a "Form View" opened as a Regular View the Perform Validations Activity works.

    But on the Dialog with will always close the Dialog, no matter what custom validations I have.
    Here is the current state of my testing, but still does not work:
    I don't have a way to "not close" the view after pressing ok to validate the form.

    0
  • Alexandre Luis

    Even if I have the "Required" option on DB and check the "Validate on Ok", it's not validating anything. 

    0
  • Johan Häggqvist Community manager
    Guardian (Purple)

    A few answers and things to consider:

    • The required option on db is not used for validations since we implemented the new type of validations.
    • If you have checked validation ok on the dialogue settings there is no need to use the Perform Validations Activity in the workflow (only needed for views)
    • If it is still not working try and check your validations in the view settings, test with some simpler form of validation to be sure you have configured the validation correctly.

    If it still not working after that please send a comment or ticket with more information on how you have configured the workflow and validations in the view. Then we can assist you further!

    Thanks!

    0
  • Alexandre Luis

    Hello Johan,

    I don't know if I'm doing anything wrong, but I don't think so.

    I have two views, one with two buttons which each one will run a different workflow, and the other one is the Form View with the inputs. I have a save button inside that view to be able to save the data when I open it as a view instead of a dialog.

     

    In the images, you can see two simple rules for the FirstName. When I open this view with the "Open View" activity, the save button triggers the "Perform Validations" activity and everything works perfectly, triggering the correct validations.

    My problem is when I open the Form View as a Dialog. No matter the changes I make to the workflow, when I press Ok it will always close the dialog without triggering the validations. 

    Here are all the workflows that I have:

     

    Br,

    Alexandre Luís

    0
  • Ivo Kukavica

    Hi Alexandre!

    I think we need to help to troubleshoot within the app. Would it be possible to provide access to: gabriel.saliba@flowfactory.com who built the validations functionality in the platform. He will then debug and see if anything is wrong or missing.

    Br, Ivo

    0
  • Alexandre Luis

    Hello Ivo!

    Ok, I've added Gabriel to the community and as Project Admin.

    Br, 

    Alexandre Luís

    0
  • Ivo Kukavica

    Hi Alexandre!

    Gabriel has now checked and debugged the application. You have set up everything correctly. He found two issues/bugs that are causing the problem in the platform. We have raised tickets for this and will fix them as soon as possible. We will let you know when they will be released.

    Br, Ivo

    0
  • Ivo Kukavica

    Hi Alexandre!

    We have now planned to fix these issues in the upcoming 3.3.0 release, planned for 20/8.

    We will let you know when its released so that you can verify that it works.

    Br, Ivo

    0
  • Alexandre Luis

    Hi guys,

    I've noticed that you have updated the platform.

    With the update, this issue was solved. Now I can trigger the validations using the Dialog View.

     

    Thanks!

    AL

    1
  • Ivo Kukavica

    Great to hear Alexandre. Happy that the fix solved your issue.

    Br, Ivo

    0

Please sign in to leave a comment.

Powered by Zendesk