How to get the state of a checkbox in a Simple Form uib-element? #219
-
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 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... |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi, sorry about the delayed response. Do you have a simple flow to illustrate the issue? It is perfectly possible that there is a bug. Forms processing is certainly a work in progress. I'll try to get some time to test it myself but if you have a simple example flow, that would help. |
Beta Was this translation helpful? Give feedback.
-
Hello, I have created a test code for myself that can get data from a web page of a completed form HTML:
JavaScript: function submitForm() { |
Beta Was this translation helpful? Give feedback.
-
Hi, thanks for coming back. I have indeed discovered a bug in checkbox handling. Though to excuse myself, it comes from the fact that HTML standards can be utterly stupid sometimes! In this case, an input of type checkbox is the ONLY input that DOES NOT SET THE VALUE ATTRIBUTE! Extremely annoying. It is fixed in the next release of uibuilder. Not only have I changed the HTML produced from By the way, I think you can simplify your code above because all you need to get the check state is |
Beta Was this translation helpful? Give feedback.
I created an Issue #221 for this for tracking.