Hi Team,
I have a requirement to populate values from a multiselect option to another multiselect option in Power Pages (Dataverse). Both have the same values and reference the same option set.
if (region) {
// Convert the comma-separated string into an array of strings
var selectedValues = region.split(',');
// Set the multiselect dropdown using the array
$('#new_region').val(selectedValues);
// IMPORTANT: Trigger the change event to update the UI
$('#new_region').trigger('change');
}
The code executes without any issues, but on the Power Pages portal multistep form, the values are not getting populated. Has anyone else encountered this issue?