I have a List Box that I need the end user to select atleast one value from and if they dont I want to present an error message. I have tried to configure the expression in the Error Message tool any number of ways
Nothing I have tried has worked. What expression should I use to stop the workflow if the user does not make a selection from the List Box. The List Box contains the names of various organizations (alpha characters)
Solved! Go to Solution.
I configured the List Box setting as following.
- Use "Generate Custom List"
So I configured the Error Message tool as following.
The important point is expression.
IF [#1]='""' THEN "True" ELSE "False" ENDIF
If the previous setting, the List Box that is not checked return the double quotation.
If you don't check them
Error message will occur.
Please refer the attached workflow.
Awesome @AkimasaKajitani 😎
So it was 🙂 which was needed to use. That was a bit cryptic one 😅
[#1]='""'
Thank you again @AkimasaKajitani for showing us how to solve it 🙂
@AkimasaKajitani @Thank you!!!!!! When I was trying to get it to work I had connected a Text Input tool to the list box with an Action tool in between so that I could see what was coming out of the list box when I had selected nothing and saw the “”. So I then configured the error message tool expression as [#1] =“” but it obviously didn’t work. I was so close!!!! I’m going to write myself a reminder nite - “when all else fails, put it in quotes”. Thank you again for your support.
For more context, this depends on the values in the XML tags <Multiple_Start> and <Multiple_End> (i.e., Stat Text and End Text in the configuration window, respectively).
Example:
<Multiple_Start>"</Multiple_Start>
<Multiple_End>"</Multiple_End>
Meaning empty List Box Selection depends on what you set for the Start Text and End Text and this is case for Dynamic List Box based on Macro Input or Custom Generated List.
So you don't have to Manually create a list of values for the list box to do this feature and it wont always be two double quotes if you set Start Text and End Text to something other than double quotes.