• Resolved isgjojo

    (@isgjojo)


    I created the code snippet:

    function mycustomprefix_give_form_required_fields( $required_fields ) {
    	//Last Name
        $required_fields['give_last'] = array(
            'error_id' => 'invalid_last_name',
            'error_message' => __( 'Please enter your last name.', 'give' )
        );
    	
        return $required_fields;
    }
    add_filter( 'give_donation_form_required_fields', 'mycustomprefix_give_form_required_fields');

    But instead of Please enter your last name, the message displayed is Please fill out this field

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Matheus Martins

    (@matheusfd)

    Hey @isgjojo,

    ?Glad you reached out. I can help you with that.

    This is happening because we included a new option in GiveWP that you can select to make the last name field required – so you don’t need that snippet.

    Navigate to Donations > Settings > Default Options > Form Fields and for the Last Name Field Required select Required.

    Please let us know if you have further questions on this or need any additional assistance!

    Thread Starter isgjojo

    (@isgjojo)

    Hi Mattheus,

    Thanks! At first, I couldn’t find it. Then I checked if the plugin is updated, and there it is!!

    • This reply was modified 3 years, 1 month ago by isgjojo.
    Plugin Support Matheus Martins

    (@matheusfd)

    Hey @isgjojo,

    This was first introduced in GiveWP 2.15.0, so make sure you are using the latest version of the plugin. In this case, you can click on Plugins > Installed Plugins and click to update your plugins. If you do not see an update for it, it’s just the cache. You can navigate to Dashboard > Updates and click on Check Again. It will check for the updates and clear the cache and you’ll be able to update the plugin.

    ?I’d recommend taking a backup of the site that you can confidently restore from. Here’s an article we wrote that explains more clearly how to do that: https://givewp.com/backup-for-faster-troubleshooting/

    Thanks for using GiveWP! Have a great day.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Last Name Required Message not changing’ is closed to new replies.