Skip to content
This repository was archived by the owner on Mar 3, 2021. It is now read-only.

Data attributes for donate button

Yutaka Houlette edited this page Apr 5, 2017 · 5 revisions

All data-attributes are optional

Appearance

  • data-fixed button is fixed to bottom right of screen
  • data-embedded the donate form is embedded on page
  • data-custom up to the user to add text/content/styles to the anchor tag

Single designation

  • data-designation='For spring fundraiser' to preset a designation

Multiple designations

  • data-multiple-designations='For spring fundraiser _For summer fundraiser' separate designations with underscores. donors will be shown an HTML select element to choose from the list of designations
  • data-designations-prompt='Where would you like your donation to go?' custom prompt message

Single amount

  • data-amount='30'

Multiple amounts

  • data-amounts='5,10,20,30,100,200' you can add up to seven amounts separated by commas

Recurring donations only

  • data-type='recurring'

One-time donations only

  • data-type='one-time'

Hide dedication input

  • data-hide-dedication

Thank you page

  • data-redirect='https://www.youtube.com/watch?v=pk8dy4NIzBU' page that donors will be redirected to after the donation process

Campaigns

  • data-campaign-id='123' associates donation with campaign
  • data-gift-option-id='123' associates donation with gift option

Custom fields

  • data-custom-fields='Shirt size, Company name, ' adds inputs for custom fields on the supporter step