Skip to content

Archive Trac docs cb hider

madscatt edited this page Jun 20, 2026 · 1 revision

Docs Cb Hider

Legacy Trac archive page imported from docs_cb_hider. Source: https://genapp.rocks/wiki/wiki/docs_cb_hider. Review age, links, and examples before treating as current.

Checkbox hider

  • the state of a checkbox can be used to control the visibility of other input & output fields [rev 1762+]
  • to enable this control, the checkbox field needs the hider attribute set, e.g.
        ,{
            "role"       : "input"
            ,"id"         : "my_checkbox"
            ,"label"      : "My Checkbox"
            ,"type"       : "checkbox"
            ,"hider"      : "true"
        }
  • dependent fields will have either the hide (hide if checked) or show (show if checked) attribute set referencing the id of the hider checkbox.
    • e.g. hide if checked
        ,{
            "role"       : "input"
            ,"id"         : "hide_me_if_checked"
            ,"label"      : "A field that hides based upon checkbox"
            ,"type"       : "float"
            ,"hide"       : "my_checkbox"
        }
  • e.g. show if checked
        ,{
            "role"       : "input"
            ,"id"         : "show_me_if_checked"
            ,"label"      : "A field that shows based upon checkbox"
            ,"type"       : "text"
            ,"show"       : "my_checkbox"
        }
  • Note that role "input" & "output" fields can hide or show based upon an input checkbox
  • N.B. currently only the following roles and field types are supported. Please contact us if you need an additional field type for hide/show ||= Role =||= Type =|| ||input||float|| ||input||text|| ||output||atomicstructure|| ||output||file|| ||output||label|| ||output||text||

Clone this wiki locally