Closed (fixed)
Project:
Conditional Fields
Version:
6.x-1.1
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Feb 2010 at 13:49 UTC
Updated:
16 Feb 2012 at 14:10 UTC
Hi,
Is it possible to use Conditional Fields to create a Page with a required checkbox and a some text saying "Want to see what's below?" and when the box is checked some more content is shown below?
I want this to be visible to anonymous users visiting my site, not to registered users creating content. It's to ensure that users have accepted terms and conditions before they can access a 'Buy it now' button.
Possible?
S
Comments
Comment #1
peterpoe commentedIf you are inserting the HTML directly in a Page, Conditional Fields can't process it.
You can use a bit of css and javascript like this to emulate the functionality:
CSS:
Javascript:
The only drawback is that the checkbox isn't really required, so users without javascript enabled will be able to see the button anyway.
Comment #2
SMartin commentedPeter,
Thanks for that... :-)
As the site admin I'm not restricted to inserting the code straight in to the Page... (?)
Is there a way to do it through the usual methods/fields etc?
S
Comment #3
peterpoe commentedYou could try the modules Panels + Editablefields, but I don't know if they work with Conditional Fields...
Comment #4
peterpoe commentedClosing old support requests...