• Resolved stijnetje

    (@stijnetje)


    Hi,

    As I need 2x country in my registration form, I used the pre-defined field country and duplicated it. But as for a predefined field, the meta-key can not been changed on the duplicated.
    I can imagine why for first name, last name, username, password the meta-key should be changed as they can only be used once on the profile of the user and that the meta-keys should therefore be fixed.

    My questions:
    1) For country should the meta-key be kept “country” to ensure the good funtioning of ultimate member and its add-ons? So the depend the functionaly on the meta-key “country”.
    2) How can the meta-key of the duplicated field be changed? It is now country_10, while I used for the other fields a prekey to make it clear to what part the belong.

    Thank you in advance for your input!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @stijnetje

    You can create a new select field with the options( countries ) from the country field settings so you can customize the meta-key when you create it.

    Regards,

    Thread Starter stijnetje

    (@stijnetje)

    Sorry, maybe a bit confused my side.

    In the field manager I choose Dropdpown. I can a proper meta key as wished, but I have no option to include the countries from the country field settings.

    I read https://docs.ultimatemember.com/article/1486-how-to-use-choices-callback which might give me some help, but then I have to include the country lists myself.

    PS: the languages get translated depending on the language. Cool ??

    Hi,

    you can change your meta_key “country_10″ to any other name if you know how to access the database.

    Go to the file posts and find out the post_id of your form.
    Then go to file postmeta and select the above post_id as seach criterium.
    Then go to the field with meta_key _um_custom_fields.
    Edit the meta_value (find TWICE s:10:”country_10″; and replace by s:(replace 10 by the number of positions for the new name):”new_name”;)

    Good luck

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hey there!

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread by changing the Topic Status to ‘Not Resolved’ if any other questions come up and we’d be happy to help. ??

    Regards,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Formbuilder: meta-key of duplicated field’ is closed to new replies.