Home Forums Plugin Support WP User Frontend Pro First value and label in dropdown field always empty

This topic is: resolved

This topic contains 3 replies, has 2 voices, and was last updated by  Chris Swede 4 years, 7 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #28557

    Chris Swede
    Member
    Post count: 56

    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.

    #28579

    Chris Swede
    Member
    Post count: 56

    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";}
    #28672

    Nayem
    Moderator
    Post count: 6480

    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 ๐Ÿ™‚

    #28695

    Chris Swede
    Member
    Post count: 56

    Hi Nayem,

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

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘First value and label in dropdown field always empty’ is closed to new replies.