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

Test checkbox clearing #4

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

Test checkbox clearing #4

davestewart opened this issue Aug 6, 2014 · 3 comments

Comments

@davestewart
Copy link
Owner

@davestewart 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
Copy link
Owner Author

@davestewart 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
Copy link

@nsdelgadov 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
Copy link
Owner Author

@davestewart 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.