In this example, we'll create fees based on the answer to a question. The screen shots will demonstrate a club that offers their members volunteer options.
- $100 if the 1st answer is chosen
- $0 if the 2nd answer is chosen
Constants Tab
Step 1
Create 1 or more constants for each of your choices that have fees.
- Constant Name
- We recommend: FEE_ANSWER_1
- We recommend: FEE_ANSWER_2
- Value (enter the fee):
- In this example, we entered: 100
- In this example, we entered: 0
- Description
- Description: Type a description of the fee here. (enter a positive number)
- Description: Type a description of the fee here. (enter a positive number)
Form Tab
Step 2
Create a SELECT FIELD you'll use to trigger the fees. You may also use an existing SELECT FIELD you already have.
- Field Name: Question
- Add instruction: Type your question here
- Field Label: Question
- Required for Patron: Checked
- Modifiable after Submit: Checked
- Select Choices
- Answer 1
- Answer 2
Calculations Tab
Step 3
Create a calculation that triggers if the answer in step 2 is selected.
- Result Name: QuestionValue
- Expression. Use: if(Question ==1, #FEE_ANSWER_1,0) + if(Question ==2, #FEE_ANSWER_2,0)
Step 4
Most communities already have a calculation that totals fees. Find the calculation you wish to add the fee to. It is often called: TotalFeesWithoutProcess
- Result Name: TotalFeesWithoutProcess
- Expression: Add the calculation in step 3 to this expression.
Form Tab
Step 5
Create a CALCRESULT FIELD on your form. Place it in your payment section.
- Field Name: DisplayFee1
- Label the field: Fee 1: $
- Initially Hidden: Unchecked
- Calculation Result Name: QuestionValue
- Decimal Places: 2
Preview Tab
Step 6
Test your form