Pre populating answers and asking where these is no response | XM Community
Skip to main content

In my survey I have the following questions:

Q1 Organisation name (free text)

Q2 Role (free text)

Q3 Membership Status: Yes / No / Don’t know (multi response question, single answer)

 

In my contact list, for some contacts this information is available but for others it is not. What I would like to do is:

  • Where the information is available populate the answers from my contact list and hide the question
  • For everyone else ask the questions.

For simplicity I would like all of the answers saved in one field. Support are telling me this is not possible but I have some across other posts that suggest it may be. Does anyone have a solution?

There are two approaches to this:

  1. Populate questions with embedded data field values
  2. Populate embedded data fields with question answers

Since the first approach requires JavaScript and modifications to the questions if you are using New Experience, the second approach will be easier to implement:

  1. Add display logic to the questions to only display if the associated embedded data field is empty
  2. In the survey flow, after the question block add branches to set the embedded data fields if they are empty
  3. Under each branch set the embedded data field to the the piped value of the associated question answer

Would the branching get around the issue that if the question is not shown no answer is recorded even if it is prefilled from the embedded data?

 


Would the branching get around the issue that if the question is not shown no answer is recorded even if it is prefilled from the embedded data?

 

The questions would only have answers if the embedded data fields are not populated in the contact list.  The embedded data fields will always have the recorded answers (either pre-filled or answers from the questions).


Leave a Reply


OSZAR »