Hi,
Does a ranking question use a different code to access the main question?
No, it does not.
Reason: There is no property implemented to access it.
In questions with subquestions there was no way to access the main question, only the subquestions by built-in core functions.
With version 4.0.0. the plugin "expressionQuestionForAll" was introduced, which - after activation - gives access to the main question of these question types:
- arrays
- multiple questions
You may see here
"application/core/plugins/expressionQuestionForAll/expressionQuestionForAll.php"
Here an example to show that properties work in "ranking" questions - except the text of the main question.
And the property ".mandatory"?
Doesn't seem to work for any question type at the moment. (5.3.25.)
Above: All questions were mandatory.
Joffm