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

    (@xnau)

    The reason you can only choose text fields is that the information in this field is used by the plugin to send emails. If a different type of field were chosen here, it would break that functionality and possibly cause a fatal error.

    Thread Starter Bubbles

    (@ciaobellaz)

    I understand the use of the field. My Dropdown field offers email address choices. By using an email which is selected instead of typed, I don’t have to deal with incorrectly typed addresses, admins can choose theirs from the list, and no one has to type twice to verify — it’s faster and provides accuracy. Since all email addresses in this field are clickable on the front end, the plugin is obviously reading them correctly, so I didn’t think it would be a stretch to use the field for Primary Email.

    It sounds like you are saying this is a limitation of how the plugin is written. Thank you for taking the time to respond.

    Plugin Author xnau webdesign

    (@xnau)

    I hadn’t considered this possibility, although I can see it working.

    If you feel like altering the plugin, the function that determines which fields are available in the dropdown is in PDb_Settings.class.php named _get_identifer_columns on line 1271 you can easily see how to allow other field types into the list.

    Thread Starter Bubbles

    (@ciaobellaz)

    Again, thank you for your time.

    I changed 'options' => self::_get_identifier_columns(), for the Primary Email admin field to 'options' => $this->_get_sort_columns(), which I copied from the Sort field code. It seems to work and doesn’t look like I broke anything.

    Using 'options' => $this->_get_sort_columns(), lists every field, including those which are not formatted as email fields, but since the original code listed all text fields (not all of which were email fields), I’m okay with that.

    I appreciate your help and am marking this resolved.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Settings: Primary Email Address Field’ is closed to new replies.