Forum Discussion

MichaelTamoush's avatar
MichaelTamoush
Qrew Captain
3 years ago

Toggle a checkbox in Pipelines

Currently if I want to toggle a checkbox with a pipeline, i use an if condition. If checkbox=true, set checkbox to false, else set to true.

Is there a way to toggle a checkbox without an if statement? Something that tells QB, set the checkbox to the opposite of what it's current state is?

------------------------------
Michael Tamoush
------------------------------

2 Replies

  • I'm sure that there is a way with Jinja code, but if you want to cheat you can just make a formula checkbox in native Quickbase and use that. 

    not [My checkbox field]

    ------------------------------
    Mark Shnier (YQC)
    mark.shnier@gmail.com
    ------------------------------
  • I'm using something like this in a pipeline to control a checkbox. 

    {% if a.checkbox_field == FALSE%}
    TRUE
    {% else %}
    FALSE
    {% endif %}



    ------------------------------
    Jeff Peterson
    ------------------------------