Test checkbox clearing #4

Open
davestewart opened this Issue Aug 6, 2014 · 3 comments

Comments

Projects
None yet
2 participants
@davestewart
Owner

davestewart commented Aug 6, 2014

Quick question: Your demo page says, in the section about data types:

Checkbox (checkbox) Checks or unchecks the box String value

But if the expected content of the string is the value of the checkbox, how is it possible to explicitly uncheck the box? I don't want to clear the whole form first, so this actually matters in my case. Thanks!

(If you can toss me an email so I know you answered, that would be great.)

@davestewart

This comment has been minimized.

Show comment
Hide comment
@davestewart

davestewart Aug 6, 2014

Owner

Addendum: It doesn't appear that it will uncheck checkboxes at all, so I had to uncheck them before calling populate() to start with a clean slate. Then I couldn't figure out what value to use even to check the checkboxes – your only example is a group of checkboxes with the same name, therefore an array is used. But mine are independent single checkboxes with unique names. I had to put breakpoints in your code in Firebug to figure it out – it turns out that the magic value that will make the plugin code recognize it and check the checkbox is literally "checkboxValue". That's a bit hard to guess (!), so you might want to mention it in your docs.

Owner

davestewart commented Aug 6, 2014

Addendum: It doesn't appear that it will uncheck checkboxes at all, so I had to uncheck them before calling populate() to start with a clean slate. Then I couldn't figure out what value to use even to check the checkboxes – your only example is a group of checkboxes with the same name, therefore an array is used. But mine are independent single checkboxes with unique names. I had to put breakpoints in your code in Firebug to figure it out – it turns out that the magic value that will make the plugin code recognize it and check the checkbox is literally "checkboxValue". That's a bit hard to guess (!), so you might want to mention it in your docs.

@nsdelgadov

This comment has been minimized.

Show comment
Hide comment
@nsdelgadov

nsdelgadov Jan 12, 2017

Hi, are you supporting this?
I am using your library and checkboxes didn't work, I fix them with: "element.checked = values[j];" instead of "element.checked |= element.value == values[j]"
PD: Sorry for my english :/

nsdelgadov commented Jan 12, 2017

Hi, are you supporting this?
I am using your library and checkboxes didn't work, I fix them with: "element.checked = values[j];" instead of "element.checked |= element.value == values[j]"
PD: Sorry for my english :/

@davestewart

This comment has been minimized.

Show comment
Hide comment
@davestewart

davestewart Jan 12, 2017

Owner

I haven't for a long time! But I'm looking to update all my repos over the next while, so I'll take a look.

Owner

davestewart commented Jan 12, 2017

I haven't for a long time! But I'm looking to update all my repos over the next while, so I'll take a look.

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