Hi,
I want to hide one of the multi-select option value in portal form using JavaScript(In CRM, it is a global option set which is used on entity, I have created an option set field on entity and using an existing global option set) which will display on the portal form when radio button is true.
I have tried the following code on both the options but it didn't work, could you please let me know how we can achieve it. Thanks
$("#new_optionset").children('option:eq(938700002)').hide();
or
$(document).ready(function(){ $("#new_twooptions").change(function () { // Get value of your trigger field let currentVal = $("#new_twooptions option:selected").val(); //do some validation if(currentVal == "1") { $("#new_optionset option[value='938700002']").hide(); } else { $("#new_optionset option[value='938700002']").show(); } }); });