• Resolved amila

    (@flatworld21)


    If I add a radio field as Gender with value Male and Female, Male or Female will be inserted into wp_usermeta.

        [user_gender] => Array
            (
                [0] => Female
            )

    Is it possible to insert 1 or 2? And 1 means Male, 2 means Female. Like this

        [user_gender] => Array
            (
                [0] => 2
            )

    As checkbox with Yes or No, it saves like

    Array
            (
                [0] => a:1:{i:0;s:3:"Yes";}
            )

    Is it possible to save just like

    Array
            (
                [0] => 0
            )

    or

    Array
            (
                [0] => 1
            )

    [0] => 0 means Yes, and [0] => 1 means No.

    I need to do this because I have to make a user search page.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Georgian Cocora

    (@raster02)

    Hello @flatworld21,

    You are using the Pro version so please direct further questions to our ticketing system as we are not allowed to offer support on these forums for that version. You can open a ticket here: https://www.cozmoslabs.com/support/open-ticket/

    When you define a Radio field (or Checkbox or Select) you are asked to enter Options and Labels. What you enter in the Options input will be saved in your Database and what you enter in the Labels input will be shown to the user.

    As an example, considering you have a Radio field with 1,2,3 as options and a,b,c as labels and the user selects the second option, b, in the database will be saved just 2.

    Regards.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    in DB (PRO)

    For pro or commercial product support please contact the author directly on their site. This includes any pre-sales topics as well.

    As the author is aware, commercial products are not supported in these forums. I am sure they will have no problem supporting you there.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘save data in DB (PRO)’ is closed to new replies.