Hey everyone,
My screen has two fields: dropdown list and a button
dropdown list: "field1", "field2", "field3"
I wanted the default value shown in my dropdown list to be "please enter something" instead of the first value from my list. so in the "Empty Text" field, I entered: "please enter something"
In my flowchart, I added an "IF" to check if the field is empty, but it's not empty because my default value is "please enter something"
when I double click the "IF" icon, I get an express screen that pops up and I have:
" not SourceProjectNames.List.Empty"
My question, how do I check if that dropdown value is NOT a certain text (ie: please enter something)
I am super new to using outsystems. please let me know if there's a better way to do this. TYIA
To check if user has selected any value from dropdown or not we can use if condition.
You can refer above screenshot, so if the variable is of Text datatype , you can directly check if it is blank.
For e.g. EmployeeName = ""
Hello Alex,
To achieve this use local variable in Dropdown value instead of entity value and in your if condition use that same local variable.
I have attached the OML here, you will find it in Test screen.
Hope this helps,
Komal
This will work
A good exercise for a beginner would be to check the value being passed to the client action using the OutSystems debugger. Based on that value, you could create the necessary logic.