Validation of rule on button submit should not start the process when evaluated to be false

We have a requirement where a rule has to be evaluated which has to happen at a button click and we have 3 buttons which needs this rule to be evaluated wrapped in a cardlayout.

Now the do we have any mechanism to evaluate the rule when any button is clicked and throw a error message when rule is not evaluated as true. Please note that all the buttons have processes in them and we should not execute the process when the rule is false.

Thanks in advance!!!

  Discussion posts and replies are publicly visible

Parents
  • If its not an expensive rule (like database call or other system call) please evaluate those rules using a!localVariable() or with(). This would keep the output ready. You can then enable or disable the buttons based on the output.

    You can also use submit link to use confirm message as well.

    Trust it answers your question.

Reply
  • If its not an expensive rule (like database call or other system call) please evaluate those rules using a!localVariable() or with(). This would keep the output ready. You can then enable or disable the buttons based on the output.

    You can also use submit link to use confirm message as well.

    Trust it answers your question.

Children
No Data