Can the City field for new recommendations from DonorCentral be set up to exclude specific characters?
  • 18 Jan 2023
  • Contributors
  • Dark
    Light
  • PDF

Can the City field for new recommendations from DonorCentral be set up to exclude specific characters?

  • Dark
    Light
  • PDF

Article summary

When donors enter a recommendation and choose to suggest a new charity, if they enter a comma at the end of the City field, this will be retained when creating a profile from the recommendation.

Answer:

To resolve:

1. Go to Control Panel -> Recommendation Form > Charity tab
2. Scroll to the City field
3. Click the gear button to Edit

4.  Go to the Validation tab > Regular Expression Pattern field
5. Add the following regular expression for preventing comma or space at the end:  .*[^,|\s]$. Click save. 

  • You can also add a custom message that users will receive if they put in an invalid character, for example:
Click save if adding this change as well. 

6. When this window closes after clicking save scroll down to the bottom of the form and Click Save Form


Was this article helpful?