This form allows patrons and staff to register for tickets for a program. The form displays the number of tickets purchased as well as calulates the total money owed by the patron.
Why this is great
Staff can now keep track of ticket sales in EK and use the confirmation email (which includes the ticket and dollar totals) as a receipt.
Why we don't use it much
Since the form requires the use of javascript, it is a little unweildy to set up. See Plymouth Church (org code PC) and The Dover PL (org code DTL) for examples of this form.
How to set it up
- Set up a form per usual
- Enter in this code into the Form Scripts field. Don't see that field? You need to be signed in as SYS to see it.
function AutoCalc()
{
var e1 = document.DynaForm.DF_ELEM_4;
var e2 = document.DynaForm.DF_ELEM_5;
var e3 = document.DynaForm.DF_ELEM_6;
if (e2.selectedIndex == 0)
var m = 52;
else if (e2.selectedIndex == 1)
var m = 12;
else
var m = 1;
e3.value = (e1.value * m );
}
- all the "var" and "DF_ELEM" tags are defined in the custom fields portion of the form set up. Basically you have to set up the form as you would like it in teh custom fields portion and then add this functionality to it later. ie make the "ticket price" field and then attach this script to it.
Here is what the form then looks like:

Direct Link =
www.answerkeeper.com/ekreg_dollaramounts
This form allows patrons and staff to register for tickets for a program. The form displays the number of tickets purchased as well as calulates the total money owed by the patron.
Why this is great
Staff can now keep track of ticket sales in EK and use the confirmation email (which includes the ticket and dollar totals) as a receipt.
Why we don't use it much
Since the form requires the use of javascript, it is a little unweildy to set up. See Plymouth Church (org code PC) and The Dover PL (org code DTL) for examples of this form.
How to set it up
- Set up a form per usual
- Enter in this code into the Form Scripts field. Don't see that field? You need to be signed in as SYS to see it.
function AutoCalc()
{
var e1 = document.DynaForm.DF_ELEM_4;
var e2 = document.DynaForm.DF_ELEM_5;
var e3 = document.DynaForm.DF_ELEM_6;
if (e2.selectedIndex == 0)
var m = 52;
else if (e2.selectedIndex == 1)
var m = 12;
else
var m = 1;
e3.value = (e1.value * m );
}
- all the "var" and "DF_ELEM" tags are defined in the custom fields portion of the form set up. Basically you have to set up the form as you would like it in teh custom fields portion and then add this functionality to it later. ie make the "ticket price" field and then attach this script to it.
Here is what the form then looks like:

522
Direct Link =
www.answerkeeper.com/ekreg_dollaramounts