• Resolved Kayu999

    (@kayu999)


    Hi, I would like the checkbox to work binary, to only show me if the user ticked the box or not.

    I can’t figure out that functionality from these current settings. If I leave options and labels blank it does work like that but I can’t see what the user opted for?

    It says ‘options’ are hidden for the user, but if make 2 options checked/unchecked it will make 2 checkboxes WITH those labels for the user. I would like checked/unchecked to be 2 options visible on meta field display shortcode.

    • This topic was modified 3 years, 2 months ago by Kayu999.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Madalina Ruzsa

    (@madalinaruzsa)

    Hi @kayu999,

    If you leave Options and Labels empty, the user does not have the possibility to choose anything in this field.

    You need to create a checkbox with as many Options and Labels as you want. Then with the Display User Meta shortcode the options chosen by the user are displayed, if the user has not chosen anything in the Checkbox, the shortcode will not display anything.

    Example:

    1. Create a checkbox with title “What is your favorite pet?”, at Label you add “Dog, Cat” and at Labels you need to add “Dog, Cat”.
    2. Let’s say this checkbox field has meta-name: custom_field_1 so on a page I will add the Display User Meta shortcode like this: [user_meta key=”custom_field_1”]
    3. If the user will check both checkboxes for Dog and Cat, the shortcode will display -> Dog, Cat.
    4. If the user does not check any box, the short code will not display anything.

    Thread Starter Kayu999

    (@kayu999)

    yes that’s what I did in the end, added 1 label for checked, unchecked is empty. When you try to make a table for the user later with his data, it’s not the best visuals. It’s not that big of a deal so nevermind.

    I just imagined most people would use it in a binary way with one box that can be checked or unchecked like terms and conditions. But anyhow it doesn’t matter this is ok too

    • This reply was modified 3 years, 1 month ago by Kayu999.
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Checkbox field’ is closed to new replies.