I have an error message that will populate the top screen whenever the values that are provided in the drop down box are not selected or values are typed. I have 2 questions:
1. How can I improve this if statement to check if the values selected are from the values listed in the drop down (Ensure that values weren't typed).
2. The error message is visible on screen refresh due to all my fields being reset every time the screen refreshes (entering and exiting the screen prompts a refresh), how can I make the message visible only when the user has clicked on the field below whilst leaving the preceding field blank/incorrect selection? That way users opening up the app and entering that screen aren't already faced with a error message.
If there is a completely different approach to this that is simpler I'm all ears!
See my images below:
Error message visible with first card values being shown (none selected)
Error message with options shown
If statement to check whether the value of the first card IS NOT a value that is listed for pre-selection
Ultimately this would need to be applied to all the cards in the form.
current formula for the first card