• Resolved dponi00

    (@dponi00)


    Hi!

    I hope you’re doing ok. I have a couple more questions and hopefully you can help me ??

    I have a registration form and a profile update form.

    The registration form includes the following three field groups:
    – Username
    – Email and password
    – Gender and country

    The profile update form contains the two last field groups as well.

    The issue is, I would like to set fields as required on the registration form, but not required on the profile update form, but I can’t do that on a form-to-form basis. Should I create different field groups for each one of these forms even if they target the same values? Would there be any issues if the update profile form overrides what the registration form had saved?

    My next question is, after the user registers and goes to the profile update form, the Gender and Country values are not shown from what they chose during registration (even if I can see those values on the backend). Is it possible to make them show on the frontend again? I already set Load Values to yes. They are select fields, but they only show the placeholder value “select” on the frontend.

    Thank you again for your help and have a nice day!

Viewing 1 replies (of 1 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    I’m fine, thanks for asking ??

    Regarding your questions:

    You can totally create different field groups for registration and update, as long as fields have the same field name & configuration. Here is an example:

    Field Group: User Register
    – Field first_name (required)
    – Field last_name (required)
    – Field email (required)

    Field Group: User Update
    – Field first_name (not required)
    – Field last_name (not required)
    – Field email (not required)

    Form: User Register
    – Field Group: Field Group: User Register
    – Action: Create User / Load Values: Disabled

    Form: User Update
    – Field Group: Field Group: User Update
    – Action: Update User / Load values: Enabled – Source: Current User

    It is totally fine to have different field groups which will target the same fields, as long as both field groups fields have the exact same name and configuration. By “configuration” I mean that if there is a “Select” field it has to have the same “Choices” in both field groups.

    If you want to make sure that both field groups are identic (at the exception of required for example), you can create your field group with all the fields configured as you want, then duplicate it.

    Regarding your question about the “Select” field not showing data, please make you sure that you enabled “Load values” in the “User Action”, correctly selected the User you want to take data from, and checked the corresponding field in the “Load ACF Fields” checkboxes. Here is an example usage for user update action: https://i.imgur.com/2Oe66Pt.png

    Hope it helps!

    Have a nice day.

    Regards.

Viewing 1 replies (of 1 total)
  • The topic ‘Showing group field values on frontend’ is closed to new replies.