In this article
CDL Individual Survey Response widgets offer more flexibility like renaming question titles, bar or value display for score questions, and expressions.
Individual Survey response widgets defined in CDL provide a higher level of flexibility, including:
The ability to rename the displayed question titles
The option to display a bar or value for score questions
Setting the minimum and maximum axis for bar visualizations
The use of expressions in survey responses
The capability to use questions from multiple data sources in a single Individual survey response widget.
Note
Individual Survey Response Widgets configured with advanced settings using CDL will not display questions as these properties are unsupported in the property panel. The property panel will still open, but it can only be used to modify the container settings for these widgets.
Individual Survey Response widgets created in the UI generate a simplified CDL that mirrors the standard configuration.
The following CDL created the widget for the Individual Survey response:
size: medium
// define title
surveyResponseTitle {
tile title #rt {
value: "Customer: " + relationship:email + " " + relationship:name + " - Relationship Survey"
}
}
// define summary section
summary {
tile list #list1 {
item date {
value: relationshipResp:FirstEmailedDate
label: "Invitation Date"
}
item date {
value: relationship:interview_start
label: "Response Date"
}
}
}
// optionally define tabs
tab {
label: "all questions"
// define sections
tile list #list2 {
label: "Profile"
item comment {
label: "Country"
value: relationship:country
}
item comment {
label: "Loyalty"
value: relationship:loyalty
}
item comment {
label: "Tenure"
value: relationship:q2
}
}
tile list #list3 {
label: "Key Metrics"
item bar
label: "Overall Satisfaction"
value: score(relationship:OSAT.1)
}
item bar {
label: "Likelihood to Recommend"
value: average(score(relationship:recommend.1))
}
}
tile list #list4 {
label: "Product Satisfaction"
item bar {
label: "Brands and Options"
value: average(score(relationship:q5.1))
}
item bar {
label: "Availability"
value: average(score(relationship:q5.2))
}
item bar {
label: "Sales Person"
value: average(score(relationship:q5.3))
}
}
}
tab {
label: "Comments"
// Another section can be defined here
}
}