Multiple choice question - how to write in word template?

Hello,

I am searching for an answer on how I have to write the text for a multiple choice question in word. If I write it as a single choice questions, following error appears: “Error in condition: Cannot compare a list with a single value”. At the moment it looks as follows:

I need to be able to select several Options, and all of them appear in the final word documents.

Thank you!
Marion

Hi Marion,

For the below answer, I have assumed that the question itself enables the user to select more than one option.

The syntax for the Word document would then be as follows:

The @enumerate-and special function takes a list (e.g. in this case from a question with the identifier lender), turns it into an enumeration, and additionally automatically precedes the final entry with the word “and”.

For example, if you would insert the texts “Lender A”, “Lender B” and “Lender C” in the question, the final result would look as follows: “Lender A, Lender B and Lender C”.

As a final note: this answer assumes that the final result can exactly mirror the values inserted in the question. If there is need for conditional logic (e.g. if the user inserts “Lender A”, “Text X” should be the output in the document), then we would need to change the above coding. Let me know if that is the case!

Dear Robbert,

Thank you!! That’s already helpful.

It would be the case that for each option, I would have a ‘text x’ output and not the exact values inserted in the questionnaire. Also, I would use that Multiple choice several times in the documents with different ‘text outputs’.

Is that possible?

Thanks,
Marion