Skip to content

Feature request: have checkbox settings return value instead of boolean #159

Open

Description

@Lefthandmedia

Summary

I would like a setting with type 'checkbox' that returns the value of the setting instead of the boolean 'checked'

Step to reproduce

create a setting with input type checkbox. Have a field for a return value ('output-value'). When the setting is checked in client-view the placeholder ([[++mysetting]]) should return the value given in the output-value. instead of a boolean 1 or 0. This behaviour is similar to a MODX TV with input type checkbox

Expected behavior

a value given as output value should be returned when the checkbox is 'checked'

Activity

  1. changed the title [-]Feature request: have checkbox settings return value instead if boolean[/-] [+]Feature request: have checkbox settings return value instead of boolean[/+] on Dec 6, 2018
  2. Mark-H commented on Oct 24, 2019

    @Mark-H
    Member

    At the moment checkboxes are always cast to boolean as a feature. This would likely need a separate input type to deal with the different behavior. Probably in the form of #143

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions