Custom validation being applied to both responses | XM Community
Solved

Custom validation being applied to both responses


I'm trying to add custom validation (i.e. number entered needs to be between x and y otherwise show the message: 'please enter a valid postal code') for people who select that they currently reside 'Within the U.S.' (see below for screenshots). However, when I test the survey and select' Outside of the U.S.' (this should terminate the respondent from the survey), it's also applying the custom validation message ('please enter a valid postal code').

Any idea what I'm doing wrong? Any suggested alternatives?

!
!
!
icon

Best answer by JenCX 19 June 2019, 16:48

View original

3 replies

Userlevel 7
Badge +11
Can you just use the built-in functionality instead?
!

Either way, you'll want to apply it just to the first option instead of the whole question.
That's a much better option, thanks!
Userlevel 7
Badge +27
> @Beyond said:
> I'm trying to add custom validation (i.e. number entered needs to be between x and y otherwise show the message: 'please enter a valid postal code') for people who select that they currently reside 'Within the U.S.' (see below for screenshots). However, when I test the survey and select' Outside of the U.S.' (this should terminate the respondent from the survey), it's also applying the custom validation message ('please enter a valid postal code').
>
> Any idea what I'm doing wrong? Any suggested alternatives?
>
> !
> !
> !
>

Add a new logic set - ORwith the condition "Outside the US" is selected.

Leave a Reply