• Resolved crimay71

    (@crimay71)


    I am creating a donation form and need to calculate a service fee and allow the donor the choice of paying the service fee or not.

    Example:
    1 Donor selects $100 donation from radio button
    2. Checkbox displays a service fee of 3% of the $100, or $3. Donor has option of paying the service fee by checking the box, or not paying it (unchecked).
    3. Grand Total field (payment field) will display a calculation of the $100 + 3% (if chosen)

    I have it mapped out but I’m not finding a way to display a calculated value inside the checkbox area. Anyone have any ideas on this?

    Side note: Has anyone setup a radio button as a text field? Would like to have radio buttons for dollar amounts and then a text field for ‘other amount’.

Viewing 1 replies (of 1 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello,

    I’ll try to explain the process with an example, assuming that the radio button is the fieldnam1 field, and the form includes the checkbox field: fieldname2, that can be dependent or not to the radio button, and you want to increase the value of the fieldname1 field in the percentage defined in the fieldname2 field, but only if it has been checked. The equation associated to the calculated field in this case would be simply:

    fieldname1*(1+fieldname2/100)

    because the value of a checkbox, when it is unchecked, is zero, the same occurs with the dependent fields that are inactive.

    Note: Enter the text you want in the checkbox choice, but only the number as its value, without any additional symbol.

    Best regards.

Viewing 1 replies (of 1 total)
  • The topic ‘Use Calculated Number as Checkbox Value’ is closed to new replies.