We have a validated List (called Applications) in the Request Offering form that pulls it's data once a Line of Business and Role are selected.
We have another list (called Options) that we want hidden until a specific item from the Applications List is selected.
For some reason, we cannot get the Options list to show up when an item is selected from the Applications list; so, what we have done is created a Text Area and set the Trigger to 'Applications' and the Value to '[This#Form]Applications'.
Doing this inputs any item selected from the Applications list, into the Text Area field. Each item is separated by ~^ within the Text Area.
Example: Application 1, 3, and 2 are selected and would show up as Application1~^Application3~^Application2.
We were able to get the Options list to show up by putting the following into the Visibility field of the Options list, but it only shows up if the specific Application is selected. If 2 or more are selected then it disappears. The code is below, adding ~^ to the expression or || doesn't make a difference.
if [This#Form]textarea == "TS2" then true else false
We are looking for a way to use the above expression, but instead of == is there an operator, or other, that is equivalent to LIKE, CONTAINS, MATCH, FIND, etc...?
When trying to put in functions they don't work and always say "Unexpected function name in expression: isRegexMatch" (or along those lines); otherwise, we've tried this and it throws the error:
$(if isRegexMatch([This#Form]textarea, /Application 2/i) then true else false)