Home Forums Plugin Support WP User Frontend Pro Single checkbox is created as name="myname[ ]"

This topic is: resolved

Tagged: 

This topic contains 6 replies, has 3 voices, and was last updated by  Sekander Badsha 4 years, 9 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #25234

    karlos
    Member
    Post count: 30

    Hello,

    When I create a single checkbox, it is created with name=”myName[]”. How can we create a checkbox that has a simple name instead of an array? Something like a checkbox just with name=”myName”. I have all other plugins deactivated and still the same thing. Could you help please?

    Thank you!

    #25303

    karlos
    Member
    Post count: 30

    Any thought? Am I missing anything?

    #25304

    Tareq Hasan
    Keymaster
    Post count: 2831

    Thats the way this plugin works. It has to deal with mutliple checkboxes, so it has to be an array. What's your actual problem?

    #25305

    karlos
    Member
    Post count: 30

    I need a single checkbox with name “myName”, not a multiple checkbox. So I need something like

    input type=”checkbox” name=”myName” <-- not an array (not name="myName[]" but name="myName"). How can I accomplish that? Please help.

    #25315

    Tareq Hasan
    Keymaster
    Post count: 2831

    Sorry you can't by default. If you really want this, you've to use the action hook field as shown here.

    #25371

    karlos
    Member
    Post count: 30

    I see. I find it rather strange since I believe single checkboxes (name=”checboxName”) are very used and common as well. Would you guys include in the future an option to add single checkboxes and not only multiple checkboxes?

    It could be defaulted to a single checkbox if user creates a checkbox with only one value, and created as multiple if user decides to add more than one value.

    I would be awaiting for this feature update.

    Thanks!

    #25587

    Sekander Badsha
    Member
    Post count: 2067

    Hello Karlos,
    I will definitely pass this idea to the developer team. But can't assure about you when will this be applied. So for the time being, you'll have to use the solution above.

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

The topic ‘Single checkbox is created as name="myname[ ]"’ is closed to new replies.