Relevance based on phone number/text field with numeric appearance

416
1
Jump to solution
10-31-2021 07:14 AM
newwollyka
New Contributor III

I have a text field with a numeric appearance. The text field has a mask input to format it as a phone number in my country (XX-XXXXXX).

If there is no phone number, the surveyor should enter 99-999999. Then there are several questions related to that question and should only be relevant when the phone number isn't 99-999999.

I tried using != eg. ${phone}!='99999999' but it is not working. I tried using the functions contains() but same results.

 

0 Kudos
1 Solution

Accepted Solutions
newwollyka
New Contributor III

One solution I found is to create a hidden calculate field with the expression:

if(contains(${phone},'99-999999') ,1,0) and then put in the relevance column for the questions the following: ${phone_check}=0 and it worked

View solution in original post

0 Kudos
1 Reply
newwollyka
New Contributor III

One solution I found is to create a hidden calculate field with the expression:

if(contains(${phone},'99-999999') ,1,0) and then put in the relevance column for the questions the following: ${phone_check}=0 and it worked

0 Kudos