Multi-select option set for power apps or D365 portal
* Create an attribute with a single line of text. Option set values will be saved in comma-separated in the text field created. For example: new_multiselectoption (Schema name of the attribute created.)
* Use below javascript on the entity form custom javascript
// JavaScript source code
var multiSelectOption = $('#new_multiselectoption');
multiSelectOption.hide();
var multiselect = $('<select multiple><option value="860240000">Azure Fundamentals(AZ - 900)</option><option value="860240001">Azure AI Fundamentals(AI - 900)</option></select><option value="860240002">"Azure Data Fundamentals(DP - 900)</option></select><option value="860240003">Azure AI Fundamentals(AI - 900)</option></select><option value="860240004">Dynamics365 Fundamentals(MB - 901)</option></select>');
multiselect.val(multiSelectOption.val().split(','));
multiselect.insertAfter(multiSelectOption);
multiselect.change(function () {
multiSelectOption.val($(this).val());
});
Comments
Post a Comment