formio / formio.js

JavaScript powered Forms with JSON Form Builder
https://formio.github.io/formio.js
MIT License
1.9k stars 1.07k forks source link

Select Component Interpolation #4463

Closed josecristhian closed 9 months ago

josecristhian commented 3 years ago

Select component with resource type in the template item is not working with two interpolations:

{{ item.data.textField }} {{item.data.textField1}}

4.14.0-rc.28 => Does not work https://jsfiddle.net/josecristhian/jo72rgaw/6/

4.14.0-rc.27 => Works https://jsfiddle.net/josecristhian/cqbdkuza/2/

{ "label": "Select", "widget": "choicesjs", "tableView": true, "dataSrc": "resource", "data": { "resource": "6196891303607508f5c67c81" }, "template": "{{ item.data.textField }} - {{ item.data.textField1 }}", "key": "select", "type": "select", "input": true, "addResource": false, "reference": false }

daneformio commented 9 months ago

Closing this thread as it is outdated. Please re-open if it is still relevant. Thank you for your contribution!