Skip to main content
Solved

Restricted giving

  • November 5, 2025
  • 5 replies
  • 56 views

Forum|alt.badge.img

We have an EA client who is asking for some functionality that we’re unsure is offered out-of-the-box. They would like their donation forms to be able to include a dropdown or selector for donors to choose a specific program or project to designate their gift for. The issue is that they need the contribution source code to dynamically change based on what the user selects in the dropdown. 

 

Is this something other EA clients have enabled through custom theme code? Or is there a way to enable this type of functionality with existing Online Action form options? I have to assume other organizations have needed similar flexibility for donors to restrict gifts to certain projects. 

Best answer by Paul

Hey ​@chrisr! That is indeed not available with out of the box functionality; you would need custom JavaScript to make that work.

That said, it’s a relatively straightforward solution for someone with a decent amount of JavaScript experience; you can use the alterPost ActionTag callback to update the form POST to replace the default Source Code with another one. If you’d like to see an example of that specific functionality, you can check out this code snippet and scroll down to the /* AlterPost */ section to see how that works.

Hopefully that helps make sense of how you’d approach this? Please do feel free to DM me if you’d like to setup a quick call, and I can walk you through how that might look in your specific use case.

5 replies

Paul
Forum|alt.badge.img
  • Community Manager
  • Answer
  • November 6, 2025

Hey ​@chrisr! That is indeed not available with out of the box functionality; you would need custom JavaScript to make that work.

That said, it’s a relatively straightforward solution for someone with a decent amount of JavaScript experience; you can use the alterPost ActionTag callback to update the form POST to replace the default Source Code with another one. If you’d like to see an example of that specific functionality, you can check out this code snippet and scroll down to the /* AlterPost */ section to see how that works.

Hopefully that helps make sense of how you’d approach this? Please do feel free to DM me if you’d like to setup a quick call, and I can walk you through how that might look in your specific use case.


Forum|alt.badge.img
  • Author
  • First Timer
  • November 6, 2025

Thanks, Paul. This is super helpful and makes sense. Appreciate you providing a sample snippet. Our developers are looking further into this but I may DM if any questions come up. 


Paul
Forum|alt.badge.img
  • Community Manager
  • November 6, 2025

Good luck, and keep me posted!


Sally Heaven
Forum|alt.badge.img+1
  • First Timer
  • November 6, 2025

This would be a great feature request! We have clients who track restricted fundraising using a Custom Contribution Code, but it doesn’t dynamically change the contribution source code. (They handle that manually right now in their GL.)


Paul
Forum|alt.badge.img
  • Community Manager
  • November 7, 2025

You’re not wrong, ​@Sally Heaven. My fingers are crossed that this gets picked up and added to the roadmap at some point - a large number of EveryAction clients use our functionality this way, and having this work more cleanly out-of-the-box would be a boon for all of them.