Under Community Review

System has couple of ways to have boolean field type (and you already  mentioned some):

- text field with a list of values

- keywords

- even simple input field with predefined value

It is also interesting to know what default values are expected then:

- true/false

- yes/no

- 1/0

Since values will be passed as is to Content Delivery side

Sign in to vote on ideas
+6
Sign in to vote on ideas

Boolean field type

To have boolean flags in a schema you need to use a text field type and add the truthy and falsy values as a list. This also results in having to have custom models for evaluating from a string value to a boolean in content delivery.

Can we add a boolean field type as a system type with a toggle ux?

It's a simple extension of the system field types that shouldn't take long and fits within the XSD paradigm: http://books.xmlschemata.org/relaxng/ch19-77025.html

  • 3 comments
  • 0 members are here