Entry validation | Experience Community
Skip to main content
Question

Entry validation

  • February 6, 2026
  • 1 reply
  • 19 views

Forum|alt.badge.img

Hi everyone — I’m building a Qualtrics survey with a “points wallet” system.

On the same page, respondents:

  1. choose a travel mode (Drive Alone / Carpool / Transit), and each mode has a points cost, and

  2. enter “How many points would you like to use today?” (partial payment).

I need the numeric entry to be capped at the selected mode’s cost (e.g., if Drive Alone costs 250 points, the input must be ≤ 250). The mode’s cost is stored in an embedded data field S1D1_CostPoints, but I realized embedded data doesn’t update until the page submits, so standard validation can’t read it on the same page.

What’s the best way to enforce this constraint on the same page in Qualtrics? (JavaScript solution is fine.)
For reference, my export tags are S1D1_Mode (mode question) and S1D1_PartialPay (numeric entry).

1 reply

Forum|alt.badge.img+24

Hi ​@djquansah ,

 

Not sure if you have other use for the recode values.

Assuming your first question is an MCQ, you can set recode values for “Drive Alone”, “Carpool” and “Transit” to be 250, Y value and Z value if required.

Then, for the second question, set the custom validation to less than or equal to these recode values through a piped text. For example, ${q://QID2/SelectedChoicesRecode}

 

Hopes this helps.