Need help Scripting Apache FreeMarker for a multi-select or single select field value
Budget: $10 – $30 USD
Hi, this is a question/ support request on writing the custom <#FreeMarker>,a Java Based code, to dynamically pull in whatever multi-select values, shown in the screenshot below, that the user create.
In the attachment, "What is your Community Type End User UX.png", if a user selects 'SaaS' AND 'Educational", the backend JSON response payload looks like this below:
"multiselectFields": {
"What is your community type?": [
"SaaS",
"Educational"
]
},
Basically for the key/value pair, "multiselectFields" I need a way to extract whatever values in the array - 'SaaS' and 'Educational' from the 'multiselectFields' Object.
This document from https://freemarker.apache.org/docs/ref_directive_list.html will help. Please check the Screen Shot 2022-12-07 at 12.42.30 PM.png for example.
Ideally, the final product will be
<#list {(event.payload.request.multiselectFields)!} as x>
Part repeated for each item
</#list>
How would I go with this? Thank you!
In the attachment, "What is your Community Type End User UX.png", if a user selects 'SaaS' AND 'Educational", the backend JSON response payload looks like this below:
"multiselectFields": {
"What is your community type?": [
"SaaS",
"Educational"
]
},
Basically for the key/value pair, "multiselectFields" I need a way to extract whatever values in the array - 'SaaS' and 'Educational' from the 'multiselectFields' Object.
This document from https://freemarker.apache.org/docs/ref_directive_list.html will help. Please check the Screen Shot 2022-12-07 at 12.42.30 PM.png for example.
Ideally, the final product will be
<#list {(event.payload.request.multiselectFields)!} as x>
Part repeated for each item
</#list>
How would I go with this? Thank you!