Validate numeric data field against the value entered for the previous qusetion | XM Community
Skip to main content
Solved

Validate numeric data field against the value entered for the previous qusetion

  • January 3, 2019
  • 3 replies
  • 68 views

Can I validate that a numeric data field is less than or equal to the value entered for the previous question. For example I want to know the total time taken for travel and the longest leg of the travel. The longest leg must be less than or equal to the total time. Thanks for any advice

Best answer by YASH1T

@H2Os Happy new year! Here Custom validation can be used. pipe in the previous question selection in place of static values. you can use this pipein even if both questions are on same page/constant sum question being used. !

3 replies

YASH1T
QPN Level 2 ●●
Forum|alt.badge.img+6
  • QPN Level 2 ●●
  • Answer
  • January 3, 2019
@H2Os Happy new year! Here Custom validation can be used. pipe in the previous question selection in place of static values. you can use this pipein even if both questions are on same page/constant sum question being used. !

  • Author
  • January 3, 2019
Perfect! Thanks Guru YASH1T

YASH1T
QPN Level 2 ●●
Forum|alt.badge.img+6
  • QPN Level 2 ●●
  • January 7, 2019
@H2Os , Most welcome! if it resolve the query, kindly accept this answer so that if anyone has similar question they can get reference from here. Have nice rest of the day. :)