question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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?

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
omprakash-sharmacommented, Oct 26, 2018

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,
}
0reactions
omprakash-sharmacommented, Oct 26, 2018

Yeah, I was just exploring form.io with Angular.

On Sat, 27 Oct 2018, 00:13 Boris Moore, notifications@github.com wrote:

Not a problem, but trying to undestand. So you are using jsviews together with form.io? Are you also using Angular or React. Are you using JsViews data-linking, or just JsRender templates?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/BorisMoore/jsviews/issues/42#issuecomment-433506451, or mute the thread https://github.com/notifications/unsubscribe-auth/AS4Cz5BHqqPUMucK0ANs30unJeuZSlgqks5uo1fsgaJpZM4AELEf .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Checkboxes not working - Stack Overflow
This is not correct, input checkboxes can have the same ID and name and it will still function. The issue must be somewhere...
Read more >
<input type="checkbox"> - HTML: HyperText Markup Language
A Boolean attribute indicating whether this checkbox is checked by default (when the page loads). It does not indicate whether this checkbox is ......
Read more >
Input checkbox not working - Material Design for Bootstrap
You need to set id of checkbox element, import React from 'react'; import ...
Read more >
Input old checkbox not working properly - Laracasts
I have a form and I want to populate checkbox selections selected by the user if something wrong on submitting the form. My...
Read more >
Input type checkbox not working properly. - HTML/CSS
Initial value of checkbox is “no”, I click in checkbox and submit, I'm still getting no. ... How to fix this issue? ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found