• Resolved Silversong

    (@silversong)


    Hi,

    The e-mail field is a “required field by default”. After having read the documentation on the website I can not make it “un-required” globally. However, I would like to make the e-mail field “un-required” only for offline donations. I would like the e-mail field to remain a required field for paypal donations.

    My guess would be to use if conditionals. Could someone please guide be as to how the conditional statement should read.

    Much appreciated :).

    https://ww.wp.xz.cn/plugins/give/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Silversong

    (@silversong)

    Correction to what I said above:

    I know how to make the e-mail field “un-required” globally by commenting out the relevant code. Specifically:
    /*
    ‘give_email’ => array(
    ‘error_id’ => ‘invalid_email’,
    ‘error_message’ => __( ‘Please enter a valid email address’, ‘give’ )
    ),
    */

    However, I want the e-mail field to be un-required only for offline donations. I want it to be a required field for online donations.

    Can someone please help me or at least guide me in the right direction? 🙂

    Plugin Contributor Matt Cromwell

    (@webdevmattcrom)

    Hi there,

    I looked into it a bit, but the truth is there is a lot of functionality of the plugin connected to the email address that it really is both complex and not wise to make it not required.

    If your concerns are primarily that your donors won’t want to give their email, you can add a disclaimer on your form to say that emails are only used to send their donation confirmation and that you won’t ever contact them without their prior approval.

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

The topic ‘Make field "required" conditional to a specific payment method’ is closed to new replies.