Hi everyone,
I just want to share this solution.
If you need to generate notification emails to email addresses selected in a list datatype, you need to:
- add a virtual field;
- select a virtual field in the field "to" when you set-up notification email;
- insert the following script in the footer and replace list_of_emails with name of your list datatype field:
<script>
function ListToVirtual()
{
var ListValue = document.getElementsByName('ComboBoxInsertRecordlist_of_emails')[0].value;
var VirtualValue = document.getElementById('cbParamVirtual1');
VirtualValue.value = ListValue;
var str = document.getElementById("cbParamVirtual1").value;
var res = str.replace(/,/gi, ";");
document.getElementById("cbParamVirtual1").value = res;
}
document.getElementById("caspioform").onsubmit=ListToVirtual;
</script>