Support Article
The contents of a multi-list do not display after saving it
SA-52675
Summary
The contents of a multi-list do not display after saving it.
Error Messages
Not Applicable.
Steps to Reproduce
- Configure a multiselect control with a data page as a source in a section
- Create a local action and reference the multiselect control as a section
- Select the options from the multiselect control during runtime
- Click Save
- Run the local action. The multiselect control does not render
Root Cause
New controls like multiselect, timeline, slider etcetera are supported only in Template mode. In local action, the section with the case, renders in non-Template mode.
Resolution
Perform the following local-change:Add the below snippet in UserWorkForm (HTML fragment):
<script>
var multiSelectHook = function (){
$(".container-multiselect").each(function( index ) {
var caseActionArea = $(this).closest("[node_name='pyCaseActionArea']");
var attr = caseActionArea.attr('data-template');
if (!(typeof attr !== typeof undefined && attr !== false)) {
caseActionArea.attr('data-template','');
}
});
};
pega.u.d.attachOnload(multiSelectHook, true);
</script>
Published March 19, 2018 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.