Price sets and Contribution pages allow for donations to a "Financial Type" (and corresponding Financial Account) This is great for managing different types of donations.
It is possible to generate contribution page and profile for that maps to a single financial type. It is also possible within a single price set to specify an associate price set that maps to a financial type (I assume this will override the contribution page financial type. But there is no way to dynamically select a price set. (btw - this would be a great feature!)
This means replicating the same values for multiple price sets and writing some code to show on a single page. I'm looking at 10 different "Funds / Financial Types"
For example: Select from ($100, $500 and $1000 donation) to either the General fund or the Scholarship fund on a single page
I'm looking for something in wordpress, but webform-civicrm doesn't seem to allow this either.
Some approaches I've considered:
- Create a massive price set with all potential Financial Types and use some javascript to dynamically show/hide. This seems really ugly and hard to maintain.
- Create a parent page with some javascript to dynamically load and select from several contribution page URLS. A bit cleaner, but IMO hackish.
- Set to a dummy financial type and then write a script to re-assign to the correct one based on a value in a profile. I have not looked at the API to do this yet, but assume it would make fewer assumptions than javascript ....
BTW - I'm posting here as I think a common use case is a single page that dynamically sets the financial type based on a donor selection. Please comment if I'm right/wrong.