Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Lefthandmedia opened this issue Dec 6, 2018 · 1 comment

Comments

@Lefthandmedia
Copy link

Lefthandmedia commented Dec 6, 2018

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'

@Lefthandmedia Lefthandmedia changed the title Feature request: have checkbox settings return value instead if boolean Feature request: have checkbox settings return value instead of boolean Dec 6, 2018
@Mark-H
Copy link
Member

Mark-H commented Oct 24, 2019

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants