Skip to main content

Import from Word

This guide explains how to format a Word file so its questions can be imported into your survey. Follow these rules to get an accurate import.

Introduction​

Use the import from Word feature in the question management menu to add blocks to your survey from a Word document.

Let an AI format your questionnaire

Give your questionnaire to your AI chat (ChatGPT, Claude, Le Chat…) with this prompt, it will rewrite it following the rules of this guide:

Read https://docs.r3mscore.com/docs/survey/import-word.md
and reformat the attached questionnaire so it follows these Word import rules.
Keep the wording of the questions and answers unchanged.

Review the result before importing it.

Here is a complete question:

Q2[Age group]. What is your age group?
PROG: SINGLE
CONDITION: IF Q1.A1
Under 181
18 - 342
35 - 453
46 - 554
56 - 655
66 and over6

Block structure​

Each block is written in up to 4 zones:

ZoneContentRequired
1Reference and titleYes
2PROG: line with the type and optionsYes
3CONDITION: line (display condition)No
4Table of answers, items or fieldsDepends on the type

A block ends where the next block reference starts.

Zone 1: reference and title​

  • Format: Reference[Name]. Title
  • The reference starts with an uppercase letter, followed by uppercase letters, digits, _ or -, and ends with a dot: Q1., Q12_BIS., S7-A2..
  • The name is optional. It goes in square brackets, right before the dot: Q1[Age]. What is your age group?
  • The title can span several lines or paragraphs. Line breaks, italics and underline are kept.
  • Writing the title in bold is a convention for readability; it is not required.
Give your blocks a name

The name is a short label for the block. It is shown in the survey outline and as the table title in the results dashboard. A short name keeps these screens readable when the question title is long.

Zone 2: the PROG: line​

  • The line must start with PROG: followed by a space, then the type keyword first, then the options:
PROG: BATTERY - MULTIPLE - SHUFFLE ITEMS
  • The line can be placed anywhere between the title and the table, including on the same paragraph as the title (soft line break).
  • Separate the options with hyphens for readability.
warning

A block without a valid PROG: line is not imported. PROG:SINGLE (no space) or PROG: SHUFFLE ANSWERS - BATTERY (type not first) are not recognized as expected.

Block types​

KeywordAlso acceptedBlock type
(none), SINGLE, MULTIPLE or PROFILEClosed question
BATTERYITEMSItem battery
OPENOPEN QUESTION, FREE TEXTQuestion with input fields
R3MEXPERIENCE3 spontaneous words question
ADAPTIVEAI QUESTION, FOLLOW UP QUESTIONFollow-up question
AUTOMATICRECODERecode closed question
INTRODUCTIONIntroduction block
TRANSITIONText block
THANKYOUEnd block
GROUP, LOOP, GROUP - PAGEGroup of blocks, see Groups, loops and pages

Any line that does not start with one of these keywords is imported as a closed question. For example, PROG: INTRO or PROG: THANK YOU become closed questions.

Options​

KeywordAlso acceptedApplies toEffect
SINGLEClosed question, batteryOne answer (default)
MULTIPLEClosed question, batterySeveral answers
MIN x MAX yMULTIPLE onlyMinimum and maximum number of answers. Default: 1 to the number of answers
SHUFFLE ANSWERSROTATE ANSWERS, RANDOM ANSWERSClosed question, battery, automaticAnswers in random order
SHUFFLE ITEMSROTATE ITEMS, RANDOM ITEMSBatteryItems in random order
REVERSE SCALEREVERSED SCALE, ÉCHELLE INVERSÉEClosed question, batteryAnswers displayed in reverse order
SAME ITEMS AS RefClosed question, batteryReuses the answers or items of another block, see SAME ITEMS AS
(Q1, Q2, ...)AdaptiveBlocks the follow-up question depends on
warning

Write MIN x MAX y as one piece, separated by spaces only: MIN 2 MAX 3. MIN 2 - MAX 3 is not recognized.

Zone 3: display condition​

An optional CONDITION: line between the PROG: line and the table shows the block only when the condition is met:

CONDITION: IF Q6.I1.A1 OR Q6.I1.A2

See Conditions for the syntax.

Zone 4: answers, items and fields​

The table depends on the block type. See the sections below.


Closed questions (PROFILE, AUTOMATIC)​

Answers are written in a table:

ColumnContent
1Answer text
2Answer number: answer 5 gets the reference A5, used in conditions
3Answer options (optional)
4Answer display condition (optional), see Conditions

The number column is detected automatically (the column that contains only numbers). Without it, answers are numbered in order. Without any table, a placeholder answer is created.

AUTOMATIC questions always accept exactly one answer. They support SHUFFLE ANSWERS but not REVERSE SCALE or SAME ITEMS AS.

Answer and item options​

KeywordAlso acceptedEffect
STOPSTOP CONTACT, STOP INTER, SCREEN OUTScreen out if this answer is selected
MANDATORYREQUIRED, OBLIGATOIREScreen out if this answer is not selected
EXCLUSIVEEXCLUSIFOnly this answer can be selected
QUOTA xx%QUOTAS xx%, LIMIT xx%, RESTRICTION xx%Limits the responses accepted for this answer, from 1% to 99%. Not applied to battery answers
FREE FIELDFREE TEXT, TEXT FIELDLets the respondent type a free text answer. Only one per question
FIXEDFIXEKeeps the answer or item in place when shuffling
TAG: nameGroups the answer or item under a named tag (one tag per answer or item)
REF Axx / REF Ixx / REF FxxForces the reference of the answer (Axx), item (Ixx) or field (Fxx). Takes precedence over the number column
tip

TAG: takes everything up to the end of the cell, so write it last: FIXED - TAG: Brands.

warning

Options are searched in the whole cell, including the text after TAG:, PREFIX: or SUFFIX:. A tag such as TAG: Context contains TEXT and also turns on FREE FIELD. Avoid option keywords in those texts.

Example:

Q11. You are:
PROG: SINGLE
Man1QUOTA 50%
Woman2QUOTA 50%
Prefer not to say3STOP CONTACTCONDITION: IF NOT Q7.A1

Item batteries (BATTERY)​

The battery is written in a single table:

  • First row: two empty cells, then one column per answer with its name. Add one empty cell for the item options column, and one more for the item conditions column.
  • Each item row: item number, item text, the answer number under each answer column, then the item options and the item condition.
  • Second-to-last row (optional): answer options, with the first two cells empty.
  • Last row (optional): answer display conditions, with the first two cells empty.

The conditions column needs the options column, even if it is empty. The same goes for the conditions row and the options row.

Items get the reference I<position> (I1, I2...), unless you set REF Ixx. The answer number must be the same on every row of a column. Item options are FIXED, TAG: and REF.

Example:

Q13. When do you usually practice?
PROG: BATTERY - MULTIPLE
MorningNoonAfternoonEvening
1Monday1234
2Tuesday1234
3Wednesday1234
4Thursday1234
5Friday1234
6Saturday1234
7Sunday1234FIXEDCONDITION: IF NOT Q1.A1
REF A12 - STOP CONTACT
CONDITION: IF NOT Q7.A1

Without any table, a placeholder answer and item are created.


Reusing answers or items (SAME ITEMS AS)​

On a closed question or a battery, add SAME ITEMS AS Ref to the PROG: line to reuse the answers or items of another block of the same type. The referenced block can be placed before or after in the document.

The Zone 4 table is then ignored. Answers or items are copied with their options, tags and references, but not their conditions.

On a closed question, each copied answer is only shown if it was selected in the referenced question:

QF13A. Which brands do you know?
PROG: MULTIPLE
(usual answer table: Brand A / Brand B / Brand C)

QF13B. Which brands have you bought?
PROG: MULTIPLE - SAME ITEMS AS QF13A
(no table: only the brands selected in QF13A are shown)

Open questions (OPEN)​

The table describes the input fields of the question:

ColumnContent
1Field name
2Field type (empty = TEXT)
3Field options (optional)
4Field display condition (optional)

Field types: TEXT, NUMERIC (or NUMBER, NOMBRE), DATE, TIME (or HEURE), EMAIL (or E-MAIL), PHONE (or TEL, TELEPHONE), PASSWORD, AUTOCOMPLETE, FILE.

Field options:

KeywordEffect
HIDDEN LABELHides the field name
READ ONLY (or READONLY)Field cannot be edited
MANDATORYField is required
MIN xx / MAX xxBounds of a NUMERIC field
PREFIX: text / SUFFIX: textText displayed before or after a NUMERIC field. Write it last in the cell
REF FxxForces the field reference

Fields get the reference F<position> (F1, F2...), unless you set REF Fxx. Without any table, a single text field with a hidden label is created.

Example:

Q2. Please enter your details:
PROG: OPEN QUESTION
NameMANDATORY
NumberNUMERICMANDATORY - READ ONLY - REF F3CONDITION: IF Q7.A1 OR Q7.A2 OR Q7.A3
AgeNUMERICMANDATORY - MIN 18 - MAX 99 - SUFFIX: years

Follow-up questions (ADAPTIVE)​

List in parentheses the blocks the follow-up question depends on:

Q14. Follow-up question
PROG: ADAPTIVE (Q6, Q7, Q8, Q13)
CONDITION: IF NOT Q3.A1 AND NOT Q3.A2 AND NOT Q3.A3
warning

If one of the listed blocks cannot be found, the follow-up question is not imported.


Introduction, transition, thank you and R3M​

These blocks have no Zone 4: no answers, no items.

THANKYOU. Thank you for your participation!
PROG: THANKYOU

Groups, loops and pages​

GROUP gathers several blocks, LOOP repeats them, and GROUP - PAGE displays them on a single page. Child blocks are placed between a start and an end divider:

G1. Satisfaction
PROG: GROUP
CONDITION: IF Q1.A1
====================G1====================

C0. Product category
PROG: OPEN

====================END G1====================
  • The divider has at least 10 = on each side of the reference, which must be exactly the group reference.
  • The end divider uses END followed by a space and the reference.
  • A CONDITION: line between the type line and the start divider applies to the whole group.
  • Groups can be nested.
  • Introduction and thank you blocks placed inside a group are removed from it.
warning

Without its start divider, the group is imported as a closed question.


Ignored zones​

Content between IGNORE and END IGNORE dividers is skipped during import. Use it for internal notes:

====================IGNORE====================
Internal note
====================END IGNORE====================

Without the end divider, everything after IGNORE is skipped.


Conditions​

Conditions show or hide a block, an answer, an item or a field, based on previous answers. They use the CONDITION: keyword followed by a logical expression. IF (or SI) is optional.

Placement​

  • Block or group: a CONDITION: line between the PROG: line and the table, or the start divider of a group.
  • Answer, item or field: a CONDITION: cell on the same row of the table. For battery answers, use the conditions row at the bottom of the table.

References​

ReferenceMeaning
Q1.A2Answer A2 of question Q1 is selected
Q1.I3.A2Answer A2 is selected for item I3 of battery Q1
Q1.F1Field F1 of open question Q1 (with a value operator)

References can point to any block of the document, before or after, or to a block already in the survey.

Logical operators​

KeywordMeaning
AND / ETAll conditions must be true
OR / OUAt least one condition must be true
NOT / PASThe answer must not be selected. Also works on a group: NOT (Q1.A1 OR Q1.A2)
CONDITION: IF Q1.A1
CONDITION: IF NOT Q1.A1
CONDITION: IF Q1.A1 AND Q2.A2
CONDITION: IF Q1.A1 OR Q1.A2
CONDITION: IF (Q1.A1 AND Q1.A2) OR (NOT Q2.A1 AND NOT Q2.A3)
warning

AND and OR cannot be mixed at the same level without parentheses: that part of the condition is ignored. A reference that cannot be found also drops the part of the condition that contains it.

Value operators (open questions)​

Format: REF OPERATOR value. The value can be in double quotes. The VALUE_ prefix is optional (CONTAINS is the same as VALUE_CONTAINS).

OperatorMeaning
VALUE_EQUAL / VALUE_NOT_EQUALEqual / not equal
VALUE_GREATER / VALUE_GREATER_EQUALGreater than / greater than or equal
VALUE_LESS / VALUE_LESS_EQUALLess than / less than or equal
VALUE_CONTAINS / VALUE_NOT_CONTAINSContains / does not contain
VALUE_STARTS_WITH / VALUE_ENDS_WITHStarts with / ends with
VALUE_IN / VALUE_NOT_INIs / is not in a comma-separated list: "75, 92, 93"
VALUE_IN_RANGE / VALUE_NOT_IN_RANGEIs / is not in one of the ranges: "18-25, 40-60"
VALUE_LENGTH_EQUAL / VALUE_LENGTH_NOT_EQUALText length equal / not equal
VALUE_LENGTH_GREATER / VALUE_LENGTH_GREATER_EQUALText length greater / greater or equal
VALUE_LENGTH_LESS / VALUE_LENGTH_LESS_EQUALText length less / less or equal
CONDITION: IF Q1.F1 VALUE_CONTAINS "paris"
CONDITION: IF (Q1.F1 VALUE_GREATER 18) AND (Q1.F2 VALUE_NOT_EQUAL "none")

NOT cannot be applied to a value operator: use the opposite operator (VALUE_NOT_CONTAINS...).

tip

Proper formatting in your Word file ensures a smooth and error-free import of your survey into the platform.