Set "program rule expression" for "Text with multiple values"

Hi community,

Do you know how to set “program rule expression” for “Text with multiple values”
I want to know if elisa contains in “value”: “rapid_test,mac-elisa,pcr,other”

Thanks

At first glance I had thought the d2:validatePattern function could have helped but it seems not to work as I expected.

Based on the documentation, it could have been used as d2:validatePattern(A{varibale_name},'elisa') == true

Thanks for suggestion, it works for me: !d2:validatePattern(#{testing_type}, ‘.*elisa.*’)

1 Like