autocode age into group | XM Community
Skip to main content

autocode age into group

  • February 9, 2023
  • 8 replies
  • 184 views

Forum|alt.badge.img+1

Hi Qualtrics Community,
I am a newbie here.

I'd like to have a question asking about respondent's age,
and then autocode the answer to a hidden question named age_group.

May i ask:

  1. how to autocode, i searched around in the community and found all the solution require JS, but seems like my account dont have that lience, is there anyway to autocode without JS?

  2. is there anyway to hide and skip age_group question without JS

Screenshot 2023-02-09 160842.pngPlease can you help?
Thanks in advance

8 replies

Nikkki
Level 5 ●●●●●
Forum|alt.badge.img+17
  • Level 5 ●●●●●
  • 44 replies
  • February 9, 2023


https://community.qualtrics.com/XMcommunity/discussion/23896/autocode-age-into-groupYou need to create a embedded data in survey flow and apply condition to it this way you can capture the ages in certain groups. Refer to this link let me know if it helps. https://www.qualtrics.com/support/survey-platform/survey-module/survey-flow/standard-elements/embedded-data/


Forum|alt.badge.img+1
  • Author
  • 6 replies
  • February 9, 2023

https://community.qualtrics.com/XMcommunity/discussion/comment/55238#Comment_55238Hi Nikkki, Thanks, this helps a lot!
and if we would like to autocode to a question, not embedded data, Does using JS is the only solution?


Nikkki
Level 5 ●●●●●
Forum|alt.badge.img+17
  • Level 5 ●●●●●
  • 44 replies
  • February 9, 2023

WeishiCheung According to my knowledge yes auto coding to a quest requires JS.


Forum|alt.badge.img+1
  • Author
  • 6 replies
  • February 9, 2023

Forum|alt.badge.img

Hi All,
I am a newbie here.

 

I also started with this point, which would be basic for creating age ranges in the DB.

Please, has anyone here already done this and has the Java Script code for this implementation?

 

Thank you in advance,

Danila.


  • Level 4 ●●●●
  • 275 replies
  • July 18, 2024

Hi All,
I am a newbie here.

 

I also started with this point, which would be basic for creating age ranges in the DB.

Please, has anyone here already done this and has the Java Script code for this implementation?

 

Thank you in advance,

Danila.

Hi Danila,

 

Can you please be specific on what you need?

 

Bharath.

 


Forum|alt.badge.img

Hi Bharath,

 

Would be on the topic of autocode age into group. 
I have a question that asks the age and then I would like to automatically code the answer into a hidden question called age_group.

 

Thank you in advance,

Danila.

example:
Screenshot 2023-02-09 160842.png


  • Level 4 ●●●●
  • 275 replies
  • July 18, 2024

Based on the image, If someone enters below 18 or above 61 they get terminated right. If so, you don't need another question to terminate them. create a condition in the survey flow and terminate them. You can also store the entered number in the survey flow