• Resolved wpsoftcode

    (@wpsoftcode)


    Hello there – I wanted to add an additional field which I have done now following the instructions here.

    But I need some more help for which I’m not able to find documentation.

    My requirements (screenshot):

    1. I want to make “First Name” a required field.
    2. I want to edit placeholder for “First Name” to “Name”.
    3. I want to remove the “Last Name” field.
    4. I want to make “Email Address” field as optional.

    Please provide me documentation link or example code that I can use to solve my issue. Thanks!

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

    (@matheusfd)

    Hi, @wpsoftcode.

    I’m glad you reached out. I can certainly help you.

    1. The First Name is required by default, so you do not need to worry about it.
    2. Changing text on your website can be a challenge. That’s why we created this tutorial that explains how to do it here?https://givewp.com/documentation/resources/translating-give/translating-givewp-with-loco-translate/#modify-the-wording-using-loco-translate.
    3. You can “remove” it in the strict sense of the term. However, you can hide it using CSS.

    The multi-step donation form and the donor dashboard load in an iframe, to make them more resistant to changes made in the theme’s CSS. That’s helpful for avoiding theme conflicts, but makes customizing the style of them a bit more difficult. There are two PHP code snippets in our Snippet library that will help with that process.

    The first is for small changes, and adds some style inline to the donor dashboard or the multi-step donation form: https://github.com/impress-org/givewp-snippet-library/blob/master/form-customizations/css-customizations/style-givewp-iframes.php

    On that one, you modify lines 16-26 with your own CSS. Please note that you’ll need to change line 14 to ‘give-classic-template’ if you are using the classic template.

    The other is for enqueueing your own CSS completely via a custom stylesheet: https://github.com/impress-org/givewp-snippet-library/blob/master/form-customizations/css-customizations/enqueue-style-for-givewp-iframes.php

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

    Please note that this code snippet is provided as an example of how you can extend GiveWP with code. It’s up to you to implement and customize to your liking. We cannot provide support for custom code on your website, only the code that we create and distribute.

    4. The email is required in GiveWP.

    GiveWP is designed to help raise online donations and to that end, an email address is required. The way the plugin is structured uses a unique email as a method for donors to validate their access to donation history. This is something GiveWP has in common with most online commerce solutions, and there’s no way around the requirement

    ?Please let us know if you have further questions or need additional assistance!

    yellaiah

    (@yellaiah)

    Hi @wpsoftcode, ?We are using givewp donation plugin for create donate forms. we are facing one issue as can’t able to remove phone number and Remark fields from donate form. Could you please help us for how to remove the fields from donate forms

    Thread Starter wpsoftcode

    (@wpsoftcode)

    Hello @yellaiah – I have switched to the WooCommerce plugin as this plugin didn’t work and is showing issues with my site.

    @matheusfd may help you, or you may start a new topic from here.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Donation Form Fields’ is closed to new replies.