Custom Fields in API Donation Forms

Options

I just got a question from a client asking if it was possible to use custom fields in API enabled donation forms. I couldn't find where we had this documented in the API documentation or the community so I thought I'd add a quick post to clarify for people who haven't figured it out yet.

It is possible to include custom donation fields in API enabled donation forms. You will need to make sure the field is enabled in the shadow form that the API submits the donation to. Then make note of the name of the field (not the label) when you are in the form designer, this will be the name and ID of the field in your API form. The only other thing to note is to replace " " characters with "_" characters.

Tagged:

Comments

  • Corey, I added this to the Usage Notes section of the "donate" method documentation in our source code repository about a week ago. It will eventually get published and then be available.

Categories