• Resolved helluvagerbil

    (@helluvagerbil)


    When users sign up, I need them to submit their email address in the signup form. However, When I use the pdb_single shortcode to display the details of a record, I do NOT want the email address to be shown for security reasons. I tried moving the email address field to a different group, but not sure how to keep that group from displaying on the single record without it disappearing from the sign up sheet.

    Further making life difficult, the user needs to be able to edit their email address when using the edit form on the pdb_record page

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author xnau webdesign

    (@xnau)

    This is not hard, there are several ways to do this. One approach is to put the email in a private group: this is a group that has “public” unchecked. Fields in the group won’t be shown by [pdb_single] shortcodes.

    To make the field show up in the signup form, you need to use the “fields” attribute of the signup shortcode to make it show:

    [pdb_signup fields=”first_name,last_name,email”]

    To make it show up in the record edit forms, you can use the groups attribute to tell it which groups to show:

    [pdb_record groups=”main,address,personal”]

    Thread Starter helluvagerbil

    (@helluvagerbil)

    Ok, that seems easy enough, thank you! Will I have to list every field with the signup shortcode? Or just the “private” one?

    Plugin Author xnau webdesign

    (@xnau)

    When you use the “fields” attribute, you have to list all of the fields you want shown.

    Thread Starter helluvagerbil

    (@helluvagerbil)

    I tried using the [signup] shortcode with “fields” attribute and it still did not display the email field even though it was listed. In this instance “email” was in a group that was NOT public.

    I also tried using [pdb_single groups=”main”] while the email address was in a different group, but it still displayed both groups, including the email field. In this instance “email” was in a PUBLIC group.

    • This reply was modified 7 years, 10 months ago by helluvagerbil.
    Plugin Author xnau webdesign

    (@xnau)

    This works, I guess make sure the syntax is correct, no spaces around the =

    When using “groups” in the signup form, the groups must be public, the fields must be in the named group, and only fields with “signup” checked will show up.

    When using the “fields” attribute, it will show all the named fields without regard to the group settings or the “signup” checkbox.

    Thread Starter helluvagerbil

    (@helluvagerbil)

    Ok, so I ended up just using “fields=” on the view page and that did the trick. Didn’t use “groups=” anywhere.

    Thanks, as always, for your assistance! I wish all plug-in authors were this responsive

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

The topic ‘Make a Personal Field Private?’ is closed to new replies.