Forum post
Best Answer
Answer

Just an idea…
1. Set a global variable ($$toggle) to 0 (off) in your start-up script.
2. Set $$toggle to not $$toggle in your button script. This will set it to 1 or 0 (on or off)
3. For the field in question, use the conditional formula to If($$toggle)…set the background and text color you want.
Hope this helps.


1) Create a button with this script step:
Set Field [ yourField ; Let( $flag = Abs ( $flag - 1 ) ; YourField ) ]
2) Conditional format yourField with this:
Formula is $flag
and choose the fill color.