Skip Navigation

[Resolved] Onclick Conditional Function possible?

This support ticket is created 4 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Waqar 4 years, 1 month ago.

Assisted by: Waqar.

Author
Posts
#2074373

Hey,
is there a way to do the following function with toolset and the conditional block. If not, is there generally a possibility with Toolset?

There is an Info Box in the Conditional Block. If you click on it, content XY should be displayed in another section (on the same page). All "onclick" function.

#2074725

Hi,

Thank you for contacting us and I'd be happy to assist.

There is no built-in feature available for this, but it can be achieved using some custom JS code:
hidden link
https://stackoverflow.com/questions/6957443/how-to-display-div-after-click-the-button-in-javascript

Note: If your website is loading the Bootstrap 4 library, you can also use its 'collapse' feature:
hidden link

I hope this helps and please let me know if you need any further assistance around this.

regards,
Waqar