SIL Validator to check for value of "None"

Ryan_McAlevey September 30, 2019

I am attempting to use a SIL validator to check for the default value of "None" and return an error. 

 

Current script:

string errorMsg1 = "Please verify that the field 123456 has a selected value other than None";

if(!contains(cf_123456 = "None") {
return false, cf_123456, errorMsg1;
}

 

Currently get an error on the above, any ideas or suggestions

1 answer

0 votes
Marat February 7, 2020

If I understand you correctly, you want the cf_123456 not to be empty

string errorMsg1 = "Please verify that the field 123456 has a selected value other than None";

if(customfield_123456 == "None") {
return false, errorMsg1;
}

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events