jsviews: input type='checkbox' not working properly in new version

In previous version (before Mar 6 update), I used this syntax to get and set value for checkbox:

 <input data-getfrom="checked:Alarm" data-to="Alarm" type="checkbox"/> 

If I use the new syntax like this:

<input data-link="Alarm" type="checkbox" />

If Alarm property is set to true, it doesn’t show as checked at the checkbox. However, I can see that in the view model, the property can be updated when user check or uncheck the checkbox.

What should I do for the new version?

About this issue

  • Original URL
  • State: closed
  • Created 12 years ago
  • Comments: 15 (8 by maintainers)

Most upvoted comments

if type=“ckeckbox” default setting value = 0, change it to value = false. or It’s working for me with type=“selectboxes” instead of type=“checkbox”. with json format

{
  'type': 'selectboxes',
    'validate': {
      'required': false
    },
    'persistent': true,
    'protected': false,
    'defaultValue': false,
    'key': '',
    'name': 'checkbox',
    'datagridLabel': true,
    'label': '',
    'hideLabel': false,
    'tableView': true,
    'inputType': 'checkbox',
    'input': true,
}