Altair Posted June 22, 2020 Report Share Posted June 22, 2020 Hi, I was wondering how can we add a default value to the "Sort By" dropdown menu. I am not seeing any options through the menus. Quote Link to comment Share on other sites More sharing options...
Nuke354 Posted June 22, 2020 Report Share Posted June 22, 2020 You may use JS to force change the options. Here's how, I used the Lost and Found RMA based from your example:Here's the code that you can use:To remove the option entirely: <script type="text/javascript"> document.addEventListener('DataPageReady', function (event) { document.querySelector("#asorting > option:nth-child(1)").remove(); }); </script> To set a default blank value: <script type="text/javascript"> document.addEventListener('DataPageReady', function (event) { document.querySelector("#asorting > option:nth-child(1)").innerHTML = "Default"; }); </script> Hope this helps! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.