Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
870 views
in Plugins by
closed by

I am creating one plugin and stuck on creating dropdown selection.

Here is my code

 

$fields[] = array(
 
'label' => 'Select Optons',
'tags' => 'NAME="colors" title="select your color"',
'type' => 'select',
'options' => array('color1' => 'color1','color2' => 'color2'),
'value' => qa_opt('colors'),
 
);
 
I know I must wrong somwhere but don't know where. It is displaying selection list but not storing into database.
 
Any idea how to insert the value into database and keep selected stored value
 
Thanks
closed with the note: Resolved

1 Answer

+1 vote
by
Its solved and the same code works for me. The issue was something different than this code.
...