Buy Now
Sign in

Make a button visible and active based on a value read from a database record,

NickOg , February 15 2021, 05:05
NickOg 992
February 15 2021, 05:05 #395949
I need to make a button visible and active based on a value read from a database record, With CF6 I would have used one of the switch functions, They are not available in CF7 of course
I have watched the You Tube 'Fields Events in ChronoForms7' and that seems to be on the right track - setting a button as hidden (and inactive) and showing and activating it when a radio button is clicked.
I can't work out how to do that based on the value from the database record - eg {var:go} = YES
How would I do that??
Nick
NickOg 992
May 21 2021, 20:59 #396535
 Answer
I have the answer now using the 'Events' and 'Hidden' options of the Interface section of controls.
Use 'Toggle Shown' as the Event and enter {var:someValue} as the 'If' value and Clicked' as the function
One extra - some fields - for example Custom|HTML - don't include events. Wrap such controls in a Container area.
Nick