Customizing Progress Meters

Options

We are working on a new campaign to raise the amount of monthly (sustaining) donations. We would like to be able to set a monthly amount goal, for example $10,000/month, and display on the form our progress towards the goal. From what I can tell, the Progress Meter component seems to display the total raised by the campaign to date. Has anyone found a way to customize the component to display a different metric?

- Pierre

Tagged:

Comments

  • Pierre,

    Convio Widgets cannot be customized to display only a monthly amount. In order to do this, your organization would need to build something custom. The best solution I can think of is to use Convio Web Services to get all of the donations made to the donation form so far this month using Convio's query language (known as CQL) and total them up, for example:



    select Payment.Amount from Donation where FormId = 1234 and Payment.PaymentDate >= 2010-08-01T00:00:00-05:00

    (Where 1234 is the donation form ID.)

    So I'd imagine you'd build this custom application in an external site, say in PHP, then you can call that custom application from within Convio using JavaScript. Once you get back the total amount for the month, you can display your progress meter. The progress meter URL follows a predictable syntax, so you'd just need to plugin the percent of the goal raised:



    <img alt="" src="DynImg/progress.jpg?pi=1234&percent=50" />

    (Where 1234 is the progress meter's ID.)

Categories