Hi,
After digging deeper into this issue, I found that your field configurations will not make the field work the way you need.
The option needs to have a value in order to be initially selected using the “default” node in the field array.
If you need an empty option, you can do that using the “placeholder” node in the field array.
You may assign “true” to “allowClear” which exists in the “select2” node of the field array. This will add an option to clear the field and automatically select the option in the “placeholder” you filled.
Can you please try the following configuration:
array(
'id' => 'ts_blog_style',
'type' => 'select',
'title' => 'Blog Style',
'subtitle' => '',
'desc' => '',
'options' => array(
'2' => 'Default2',
'list' => 'List'
),
"placeholder"=> 'Test',
'select2' =>
array(
'allowClear' => true,
'minimumResultsForSearch' => 'Infinity'
)
)
Thanks.
-
This reply was modified 3 years, 10 months ago by mohammedeisa.