Getting rid of – Select – option in multiselects?
Author | Posts |
---|---|
August 28, 2013 at 2:06 pm 7574 | |
Tareq Hasan | Hi, i'm trying to use the jQuery plugin chosen on the dropdowns and multiselects in my wpuf-forms. It generally works fine, but i have problem with the standard category-select: it shows an additional option labeled - Select - as a placeholder, which certainly can be helpful, but for my purposes i need to get rid of it. Could you point me to the parts of the code where this placeholder option is added, so i can find a way to edit it out? Thanks a lot! |
August 28, 2013 at 2:21 pm 7575 | |
Tareq Hasan | Just remove the |
August 28, 2013 at 2:29 pm 7576 | |
inka | Ah, nevermind, i found it: in class/render-form.php i commented out line 1274: To get rid of the option in dropdown-mode i guess one has to do the same to line 1251: If i’m doing something wrong or there is a better solution, let me know… |
August 28, 2013 at 2:44 pm 7577 | |
inka | Wait, am i missing something? If it is possible to get rid of the – Select – option for the category-element in the settings, i would definitely prefer doing that instead of altering the code. But i dont find it… |
August 28, 2013 at 3:34 pm 7578 | |
Tareq Hasan | Sorry, I thought you were talking about the custom field multiselect text. Yes, you’ve to edit the file if you want to remove from category/taxonomy. You are on the right track. |