I want to use the toggle button (highlighted below) in my user interface - similar to that used in the Profile Settings --> Email notifications interface.
Is this available anywhere or on the Appmarket?
Thanks!
Discussion posts and replies are publicly visible
a!localVariables( local!a:true, a!cardLayout( contents:{ a!richTextDisplayField( value:a!richTextIcon( icon: "toggle-off", color:"ACCENT", size:"MEDIUM_PLUS", link: a!dynamicLink( saveInto: a!save(local!a,false) ), linkStyle: "STANDALONE" ), showWhen:toboolean(local!a) ), a!richTextDisplayField( value:a!richTextIcon( icon: "toggle-on", color:"ACCENT", size:"MEDIUM_PLUS", link: a!dynamicLink( saveInto: a!save(local!a,true) ), linkStyle: "STANDALONE" ), showWhen:toboolean( local!a)= false ), } ) )
use this code for toggle button
When you wrap the richt text field in a card layout, you cannot use that component in a side-by-side layout anymore.