How to set value for a dummy question

From Catglobe Wiki
Revision as of 03:24, 21 November 2018 by Administrator (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


I have an "Age" question, with type number like this:

2018-11-19 16-17-00.png

Then I want to convert these number into some groups of age, such as:

  • Under 40
  • [40-49]
  • [50-59]
  • [60-69]
  • 70 and Over

How to do?

- First, create a single question "D_AgeGroup" right after "Age" question, with such options: 2018-11-21 8-51-46.png

- Then, set D_AgeGroup become dummy question on Properties tab

2018-11-19 16-39-43.png

- Finally, go to CGScript tab, write cgscript for setting D_AgeGroup from Age 2018-11-19 16-40-10.png

You are done.

On viewer, when clicking next at Age question, value of D_AgeGroup will be set

2018-11-21 9-12-46.png