• Resolved Allison B

    (@allison-boaz)


    Hi there –
    I noticed there is no asterisk next to last name on my give form for any payment method and don’t see a place to change that. First name and email address show asterisks, but not last name. Also don’t see where I determine that I want to capture first name, last name, and email in general.

    https://www.inthecitycamp.com/donate/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Matt Cromwell

    (@webdevmattcrom)

    Hi there,

    We don’t have options for changing the required field, but they can be customized via a filter. Here’s the filter to require the Last name:

    https://github.com/WordImpress/Give-Snippet-Library/blob/master/form-customizations/require-last-name.php

    If you need guidance implementing custom PHP functions on your website, we have this guide here: https://givewp.com/documentation/resources/adding-custom-functions-to-your-wordpress-website/

    Thanks!

    Thread Starter Allison B

    (@allison-boaz)

    Hmmm – I’m not a developer so I am hesitant to mess with PHP.

    I would have thought something like last name would be a standard required field or at least easily made so (since first name and email is) so that is disappointing as we really need to know our donors’ full names.

    Thread Starter Allison B

    (@allison-boaz)

    Looks like we have the custom functions plugin already so I will try to find someone to help me. Thanks again for your prompt responses. Appreciate it so much!

    Plugin Author Devin Walker

    (@dlocc)

    Hey @allison-boaz – if you have that plugin that’s perfect. You can just copy and paste the function into it and then all the last name fields will be required. We don’t require it by default because many donors don’t want to provide it and we want to optimize the forms for the highest conversion rates out of the box.

    Thread Starter Allison B

    (@allison-boaz)

    I replied to the email, but just in case…

    Hi Devin –
    I successfully used the plugin to require Billing details for PayPal, but this one to make last name mandatory on all give does not appear to be working. Any insight? I pulled it directly from the link provided.

    Plugin Author Devin Walker

    (@dlocc)

    Yeah it should work fine. I’ve tested it thoroughly. Please double-check or post a screenshot to provide additional information to help troubleshoot. Thanks!

    Thread Starter Allison B

    (@allison-boaz)

    Here are screenshots of the code I pasted and the donation form. Thanks so much for your help and Happy Thanksgiving!

    Screnshot 1

    Screenshot 2

    Plugin Author Devin Walker

    (@dlocc)

    Ah, I see the issue. Change give_donation_form_required_fields to give_purchase_form_required_fields – in 1.7 which isn’t released we renamed that hook. Don’t worry though, it will continue to work once you update to 1.7 once it’s released.

    Thanks and you have a good turkey day as well!

    Thread Starter Allison B

    (@allison-boaz)

    Worked! Thank you!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Last name field required?’ is closed to new replies.