Discussions

 View Only
  • 1.  Toggle a checkbox in Pipelines

    Posted 11-10-2021 11:34
    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.  RE: Toggle a checkbox in Pipelines

    Posted 11-10-2021 12:01
    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
    ------------------------------



  • 3.  RE: Toggle a checkbox in Pipelines

    Posted 11-10-2021 13:03

    I'm using something like this in a pipeline to control a checkbox. 

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



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