- Posts: 8
- Thank you received: 0
Hide and show custom fields
- lesliemathis
- Topic Author
- Offline
- New Member
Less
More
12 years 1 month ago #14655
by lesliemathis
Hide and show custom fields was created by lesliemathis
I have custom text fields on my donation form that allow a donor to give information if their gift is in memory of someone. Can I create a check box: "This gift is in honor of someone" and only show the custom fields if the check box is checked?
If that is possible, I would appreciate being pointed in the right direction. I am comfortable with css, html, php and mysql.
Thank you!
If that is possible, I would appreciate being pointed in the right direction. I am comfortable with css, html, php and mysql.
Thank you!
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
12 years 1 month ago #14664
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Hide and show custom fields
Hi
Unfortunately, the extension doesn't have this feature. In this case, you will need to edit the donation form code directly to add code for supporting this feature. The file need to be modified is components/com_jdonation/views/donation/tmpl/default.php .
Good luck !
Tuan
Unfortunately, the extension doesn't have this feature. In this case, you will need to edit the donation form code directly to add code for supporting this feature. The file need to be modified is components/com_jdonation/views/donation/tmpl/default.php .
Good luck !
Tuan
Please Log in or Create an account to join the conversation.
- lesliemathis
- Topic Author
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
12 years 4 weeks ago #14804
by lesliemathis
Replied by lesliemathis on topic Re: Hide and show custom fields
Thanks, but is there a way to add the onchange event to a custom input field? could it be altered in the database?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
12 years 4 weeks ago #14812
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Hide and show custom fields
Unfortunately, it is not possible. You will need to customize the code directly. Look at the file components/com_jdonation/helper/fields.php, you will see the code for custom field and should be able to customize it !
Regards,
Tuan
Regards,
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Mr. Dam, Dũng Nguyễn Việt
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.