Pulling Custom embedded data | XM Community
Skip to main content

I want to combine 2 embedded data, but one of them is a custom javascript code.

BranchWeek = Brannum_weekNumber

when check the embedded data on question boxes.

first box : ${e://Field/BRANNUM}_${e://Field/weekNumber}

result : brannum_week (this is what i want)

second box : ${e://Field/BranchWeek}

result = brannum_ (the week is missing)

 

Does anyone know how to create BranchWeek?

 

 

Hi @Jira_5 

You can use custom code to concatenate the two field and can use the new field as the question 


Hi Krbhavya,

thank you for responding.

would you mind showing me how to?

I need to use BranchWeek as an embedded data.


Hi @Jira_5 

If you need BranchWeek as embedded data then combining the column in survey flow will work . You have just use '+' operator between the two columns like

BranchWeek = ${e://Field/Column1} +  ${e://Field/Column2}


Hi @Jira_5 , Your approach is correct. Just checking if you have added these embedded data after the question in which JS is used. 


You can also use the field editor/field creator in Data & Analysis to concatenate which will update historical data if you have it.  When creating it in survey flow, it won’t update surveys already recorded.


Leave a Reply