Winterfell icon indicating copy to clipboard operation
Winterfell copied to clipboard

Allow checkboxInput to accept values for checked and unchecked

Open Pharserror opened this issue 6 years ago • 1 comments

Currently the checkboxInput type will set a value in the questionAnswers if the checkbox is checked. The goal of this issue would be to not set just one value but accept "checked" and "unchecked" values to set when the checkbox is checked or unchecked. For example, a checkbox for a boolean: the questionAnswers for an input named thing[foo] would be { thing: { foo: "true" } } for a checked checkbox and { thing: { foo: "false" } } for an unchecked checkbox.

More than happy to submit a PR. Give me the goahead 👍

Cheers,

  • Pharse

Pharserror avatar Aug 03 '18 01:08 Pharserror

Update: I need this for my own project now; so, I am working on this.

Pharserror avatar Oct 12 '18 13:10 Pharserror