First value and label in dropdown field always empty

This topic contains 3 reply and 2 voices, and was last updated by Chris Swede 10 years, 1 month ago
Viewing 3 Posts - 1 through 3 (of 3 total)
Author Posts
October 17, 2014 at 7:29 am 28557
Chris Swede I am encountering a problem with dropdowns in the form. I have created a dropdown custom field with five different values, 1-5. When I save the form, there is always an empty label/value pair added on top, which becomes an empty selectable line in the front-end dropdown. Update: The same error also occurs if I create a radio custom field.
October 17, 2014 at 6:33 pm 28579
Chris Swede Chris Swede

This is what is saved in the database:

"dropdown_field";s:8:"required";s:2:"no";s:5:"label";s:7:"Ranking";s:4:"name";s:14:"_pn_apr_rating";
s:7:"is_meta";s:3:"yes";s:4:"help";s:0:"";s:3:"css";s:0:"";s:5:"first";s:5:"Rate";s:7:"options";a:6:{s:0:"";s:0:"";i:1;s:9:"one star";i:2;s:9:"two stars";i:3;s:11:"three stars";i:4;s:10:"four stars";i:5;s:10:"five stars";}

I can fix this manually, by deleting empty options in phpMyAdmin:

"dropdown_field";s:8:"required";s:2:"no";s:5:"label";s:7:"Ranking";s:4:"name";s:14:"_pn_apr_rating";
s:7:"is_meta";s:3:"yes";s:4:"help";s:0:"";s:3:"css";s:0:"";s:5:"first";s:5:"Rate";s:7:"options";a:5:{i:1;s:9:"one star";i:2;s:9:"two stars";i:3;s:11:"three stars";i:4;s:10:"four stars";i:5;s:10:"five stars";}
October 19, 2014 at 5:32 pm 28672
Nayem Nayem

Hello Chris,
Please confirm me if you are using the latest version of User Frontend which is 2.2.6 and using the latest version of WordPress. I have tested this issue but failed to reproduce.
You can check for theme and plugin conflicts to be sure. You can deactivate all other plugins expect User Fronted and switch to a default WordPress theme like “Twenty Twelve” and check and let me know.

Thank You 🙂

October 20, 2014 at 1:15 am 28695
Chris Swede Chris Swede

Hi Nayem,

Indeed the latest update has fixed this. Thanks for your help!

Viewing 3 Posts - 1 through 3 (of 3 total)