- Posts: 24
- Thank you received: 0
Questions about Payment Form extension
Fee field dependent on answering "Yes" or "No" in another field
- Colin Wilson
- Topic Author
- Offline
- Junior Member
Less
More
6 years 11 months ago #108037
by Colin Wilson
Fee field dependent on answering "Yes" or "No" in another field was created by Colin Wilson
I would like to add a field to charge 2% for Paypal or credit card charges. But I don't want it to apply automatically to every payment through the payment plug-in, I want to provide users with the option of voluntarily paying it.
The payment should be based on a list field named [RENEW_TYPE] that is the type of membership they are renewing e.g. Adult $525, Family $1050, Student $150 etc.
I have a checkbox field with the options "Yes" or "No" (i.e. to volunteer the payment).
Then I have a fee field named [SURCHARGE] that should be dependent on whether they answer "Yes" or "No", and with a fee formula of [RENEW_TYPE]*0.02.
However, I can't get the Surcharge field to accept "Yes" as the "depend on" option. If I tick the "Yes" box, it refuses to save it and just leaves it unticked.
How do I do it correctly?
The payment should be based on a list field named [RENEW_TYPE] that is the type of membership they are renewing e.g. Adult $525, Family $1050, Student $150 etc.
I have a checkbox field with the options "Yes" or "No" (i.e. to volunteer the payment).
Then I have a fee field named [SURCHARGE] that should be dependent on whether they answer "Yes" or "No", and with a fee formula of [RENEW_TYPE]*0.02.
However, I can't get the Surcharge field to accept "Yes" as the "depend on" option. If I tick the "Yes" box, it refuses to save it and just leaves it unticked.
How do I do it correctly?
Please Log in or Create an account to join the conversation.
- Colin Wilson
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 24
- Thank you received: 0
6 years 11 months ago #108046
by Colin Wilson
Replied by Colin Wilson on topic Fee field dependent on answering "Yes" or "No" in another field
I have fixed it, there was a comma in the "Yes, I agree" option that it didn't like.
My question now is how do I place the value of the Surcharge on the form for payees to see, rather than just adding it to the total amount?
My question now is how do I place the value of the Surcharge on the form for payees to see, rather than just adding it to the total amount?
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.