toggle form fields

  • lesliemathis
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 11 months ago #61912 by lesliemathis
toggle form fields was created by lesliemathis
I want to hide/show form fields depending on if someone checks a check box.
When someone checks a box to make their donation in honor of someone I want to display a text field to type in their name. How can I add an onclick event to the checkbox?

Thank you!

Please Log in or Create an account to join the conversation.

More
9 years 11 months ago #61943 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic toggle form fields
Hi

This feature is not supported in the extension, unfortunately, so you will need to customize the code of the extension to allow this feature.

The file you need to modify is components/com_jdonation/view/donation/tmpl/default.php. I think you will need to know jQuery abit to bind event to checkbox and process the code you want. Quick google found this sample stackoverflow.com/questions/7031226/jque...ange-and-click-event , maybe you can try

Tuan

Please Log in or Create an account to join the conversation.

  • lesliemathis
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 11 months ago #62023 by lesliemathis
Replied by lesliemathis on topic toggle form fields
Thank you, I will give that a try.

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamDũng Nguyễn Việt