You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by shanedmurphy June 15, 2023
Before I jump in and open an issue I just want to check if I am missing something...
I want to use a checkbox in a form to control enable/disable of a feature. I read the state from its source, then generate the form using a function node (content is dynamic) and pass it to the uib-element node configured as a simple form. I can render the state correctly by including a checked property for the checkbox if it should be checked, and removing it if it should not be checked. But when a button is pressed and I get an event in node-red with the state of the other form fields, I can't see anything in the event which tells me the state of the checkbox. The value property at the top level seems irrelevant for a checkbox and there is no checked property. I note if the checkbox has been interacted with I get something in the _ui.form.{checkboxId}.data but this doesn't tell me the final state of the checkbox.
I can create an issue if this is a bug, and possibly try to contribute a solution depending if this doesn't involve anything too invasive. But I am also not 100% confident I am not just missing something here...
The text was updated successfully, but these errors were encountered:
Discussed in #219
Originally posted by shanedmurphy June 15, 2023
Before I jump in and open an issue I just want to check if I am missing something...
I want to use a checkbox in a form to control enable/disable of a feature. I read the state from its source, then generate the form using a function node (content is dynamic) and pass it to the uib-element node configured as a simple form. I can render the state correctly by including a
checked
property for the checkbox if it should be checked, and removing it if it should not be checked. But when a button is pressed and I get an event in node-red with the state of the other form fields, I can't see anything in the event which tells me the state of the checkbox. Thevalue
property at the top level seems irrelevant for a checkbox and there is nochecked
property. I note if the checkbox has been interacted with I get something in the_ui.form.{checkboxId}.data
but this doesn't tell me the final state of the checkbox.I can create an issue if this is a bug, and possibly try to contribute a solution depending if this doesn't involve anything too invasive. But I am also not 100% confident I am not just missing something here...
The text was updated successfully, but these errors were encountered: