0

I am working on Lightning Flow Screen. I have a new requirement in which I have to validate output value returned from Lightning Web Component (LWC) present on the screen flow. Along with this, a error message should be displayed on the Screen when the conditions are not met.

For standard input element validation option is present in Screen Flow but is there any way using which I can add validations on such custom components used?

Any help or idea related to this would be a great help.

Thanks.

1
  • welcome to SFSE! Please take a moment to visit the help center, scroll through the tour, and read How to Ask. What is the LWC doing exactly? ex. Multiple input fields, just one, etc. Dec 22, 2021 at 15:36

1 Answer 1

1

If you have the ability to modify the code of the custom component, you can add validation logic that gets called when the user tries to leave. If you don't have that ability, then you'd have to add an additional screen and carry out validation after the user clicks Next.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.