Text Entry & PNTA button? | XM Community
Skip to main content
Question

Text Entry & PNTA button?

  • February 21, 2025
  • 3 replies
  • 29 views

Forum|alt.badge.img+2

Question type: text entry

 

I want to ask respondents to type in their age, but also give them a “Prefer not to answer” button. 

Is there any way to do this besides a side-by-side?

3 replies

Forum|alt.badge.img+2

I’ve been doing this by stacking three question elements on the same page, for example:

  1. [Q_Text] -> a  ‘text/graphic’ question that says “1. How old are you?”
  2. [Q_Num] → A ‘text entry’ question where respondents can type in a number (You could use CSS to hide the ‘question text’ for this, or put in an instruction like “Enter a whole number”)
  3. [Q_PNTS] → A ‘multiple choice’ question with
    * “Prefer not to say” as the only answer option, and
    * ‘Answer type’ set to ‘Allow multiple answers’ (so that respondents get a checkbox instead of a radio button that can’t be de-selected)

To make sure that participants answer either [Q_Num] or [Q_PNTS] but not both, I usually use in-page display logic, but you could probably enforce something like that with custom validation too. My display logic works like:

  • [Q_Num] only displays when “Prefer not to say” is not checked-off, and 
  • [Q_PNTS} only displays when Q_Num is not empty. 

gPandey_715
Level 2 ●●
Forum|alt.badge.img+5
  • Level 2 ●●
  • 28 replies
  • February 22, 2025

Hello ​@TerryFoster 

You can try Using Form Field with Two Choices.

  1. Add a Form Field question.
  2. Create one field for Age (Text Entry) and another for Prefer not to answer (Single-Choice Checkbox).
  3. Use Display logic or Custom Validation to ensure only one is filled at a time.

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5926 replies
  • February 24, 2025

@TerryFoster,

I would use a multiple choice with allow text on the first choice and prefer not to say as the second choice.