darkside40 107 Posted October 26, 2025 Posted October 26, 2025 Is it possible to set a standard value for a drop down menu in the Emby GUI? Tried it standard html way but it does not work: <div class="selectContainer"> <select is="emby-select" class="txtvisibilitySetting" label="Visibility Setting" required="required"> <option selected="selected" value="Public">public</option> <option value="Unlisted">unlisted</option> <option value="Private">private</option> </select> </div> The Dropdown stays empty
softworkz 5065 Posted October 26, 2025 Posted October 26, 2025 Why do you think you need a default value that is HTML-controlled? It doesn't make sense, because on load, you need to set it to the stored value (via javascript) and when the user saves, you need to read the value (via js). Defautl values must come from the server-side. Your c# plugin code needs to have/know the defaults because it needs to work with something also when the user has never visited the config page. Due to this required roundtripping, there is logically no room for any defaults in your html markup.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now