I also thank you for this!
I have two questions extending rafaom's:
1) There can be up to a hundred people in my example (a single person reporting about a larger group of people). Is there a way to automise this? Otherwise I would just copy the groups in XML (btw: is there a better way to make a hundred identic groups?), but that would be just ugly.
2) To identify each individual, their name shall show up in the question. To do that, I would like to have a variable in the id of a replacement field. For example: If the current person is person 36, can I show {INSERTANS:92731X2016X14971name_first36}? The names are all entered in one question in the group before.
I do know quite a bit of php, and I would also like to contribute to LimeSurvey. So if it takes some programming to accomplish this, I would be happy to do so (if I am able).
Greets
jonsen
[EDIT] regarding question 2: Could I replace the question div (<div id="questionXYZ">) empty and just fill it with javascript?
[EDIT 2] 3) As the number of people can be as low as _one_, can I only ask for one name in this case, and for 17 if there are 17?
Example:
Question 1: How many doctoral candidates do you have in your department?
Question 2: What are the names of the candidates?
Question 3: Has {person_XYZ_name_first} published any article in a journal regarding the field of physics?
I AM WILLING TO MOVE ANY OF THESE QUESTIONS TO A NEW TOPIC, please tell me if you think that's neccessary.