Title: Change Address Field
Last modified: September 27, 2020

---

# Change Address Field

 *  Resolved [blair08](https://wordpress.org/support/users/blair08/)
 * (@blair08)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/change-address-field/)
 * I tried to use this code but its not changing address label. Any work around?
 * /* Get the State field. */
    $field = charitable()->donation_fields()->get_field(‘
   address’ );
 * /* Change the label to Province. */
    $field->set( ‘label’, ”, ‘Complete Address’);
 * /* Change the field to be required. */
    $field->set( ‘donation_form’, ‘required’,
   true );
 * Thank you

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

 *  [Eric Daams](https://wordpress.org/support/users/ericdaams/)
 * (@ericdaams)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/change-address-field/#post-13459552)
 * Hi [@blair08](https://wordpress.org/support/users/blair08/),
 * For the label, try this:
 *     ```
       $field->set( 'donation_form', 'label', 'Complete Address' );
       ```
   
 * If that doesn’t work, could you let me know how you are adding this code to your
   site?
 * Cheers,
    Eric
 *  Thread Starter [blair08](https://wordpress.org/support/users/blair08/)
 * (@blair08)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/change-address-field/#post-13473688)
 * Yes Eric, I figured out before your reply. It worked.
    Thank you.
 * Cheers,
 * Blair

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

The topic ‘Change Address Field’ is closed to new replies.

 * ![](https://ps.w.org/charitable/assets/icon-128x128.jpg?rev=1225178)
 * [Charitable - Donation Plugin for WordPress - Fundraising with Recurring Donations & More](https://wordpress.org/plugins/charitable/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/charitable/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/charitable/)
 * [Active Topics](https://wordpress.org/support/plugin/charitable/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/charitable/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/charitable/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [blair08](https://wordpress.org/support/users/blair08/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/change-address-field/#post-13473688)
 * Status: resolved