I need to remove the select all option from the option values of a multi select options field. How is this achieved?
I need to remove the select all option from the option values of a multi select options field. How is this achieved?
Hi LynneMC,
There is no OOB way to do this thing and removeOption()(removeOption (Client API reference) in model-driven apps - Power Apps | Microsoft Docs) method couldn't remove the select all option.
So I tried to hide the dom with the below code and it can work:
var myInterva; function formOnLoad(executionContext){ myInterval = setInterval(hideSelectAll,100); } function hideSelectAll(){ var selectAll = parent.document.getElementById("new_myoption_selectAll"); if(selectAll != null){ selectAll.parentNode.style.display = "none"; clearInterval(myInterval); } }
Result:
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,269 Super User 2024 Season 2
Martin Dráb 230,198 Most Valuable Professional
nmaenpaa 101,156