You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'
The text was updated successfully, but these errors were encountered:
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
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
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'
The text was updated successfully, but these errors were encountered: