Skip to main content

I'm using a custom picklist LWC Component and whenever I click on the next without selecting any picklist value, it allows me to go to the next component. Is there any way to validate this?

How to validate the screen flow picklist value is selected or not and need to restrict the user not to click on next button if it is blank

#flow
5 respostas
  1. Eric Praud (Activ8 Solar Energies) Forum Ambassador
    7 de jun. de 2022, 17:17

    Sorry, when I answered, the screenshot in your question wasn't showing (issue on my side).

    This is a custom component, hence why you don't have the Require checkbox.

    Is there a way you could use the standard Picklist component?

    Otherwsie, you would need:

    A display text for your error mesaage, where you would set the visibility to some checkbox variable equals true

    Straight after your screen, add a decision to see if your picklisyt is null. If it is null, go to an assignemnt where you set the checkbox var to true and go back to the screen

    If it is not null, carry on with your flow

0/9000