Have an idea?

Visit Sawtooth Software Feedback to share your ideas on how we can improve our products.

Other specify and Open-Question - Problem 1

Dear All,

I want to show the alert error massage to all kinds of "Other specify" and "Open question".

For example:

If they write text that contains letter "abc" will show error message.

Hope you understand.

Thanks.
asked Jun 25 by Saroeun
You don't want respondents to be able to continue the questionnaire if their open end question or other specify field contains specific text?
Just clarify!!

The respondent can write anything and I want to catch the some letters among their text.

For example, "We can improve our products."

In the text above, it contain the letter "pro". So, it will alert error message.
By "alert error message," do you mean that a respondent will see an error message and not be able to continue the survey until their text does not include "pro"?
yes, sure

1 Answer

0 votes
Try this custom JavaScript verification:

if (/pro/i.test(SSI_GetValue('OpenEndQ'))) {
    strErrorMessage = 'Error message';
}


"pro," the name of the field to check, and the error message can all be updated as you please.
answered Jun 27 by Zachary Platinum Sawtooth Software, Inc. (117,475 points)
...