This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:template:checkbox [2017/06/22 11:10] Nicolas Ronvel [Using the variable] |
en:template:checkbox [2017/06/22 11:17] Nicolas Ronvel [Using the variable] |
||
---|---|---|---|
Line 14: | Line 14: | ||
===== Using the variable ===== | ===== Using the variable ===== | ||
- | Inside the canvas, some properties are set to a boolean (for example, ''visible''). Set such a field to the text value ''"?trueornot"'' (using your field name), and it will be converted to the boolean value corresponding to the state of the checkbox. | + | The Checkbox generates a [[en:template:boolean_variables|Boolean Variable]]. |
- | + | ||
- | Useful to hide / show a field on a card. | + | |
- | + | ||
- | ==== Not ==== | + | |
- | + | ||
- | What if you need to get the inverse result of the checkbox ? Then, you can add the code ''?!variable'' to get the inverse result. If your checkbox ''variable'' is checked, it will return ''false''. | + | |