How to set default value for dropdown field in Admin UI #5197
Unanswered
Jimmi08
asked this question in
Q&A Plugins
Replies: 1 comment
-
I have yet to find a simple e107 PHP based example to alter the data loaded into the form to set a default value for a dropdown. Instead, I typically use jQuery to check and change the simple ones if needed. PHP
then in my JS file:
There is another way I also use for more complicated fields that requires a matching function in the your_form_name_form_ui class
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am missing something here... Could somebody help?
Standard dropdown field - data from the database, it works.
Result:
Now, in preference is the default value set - value 1 -
This is not working:
Result:
What I am doing wrong way?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions