HTML - Enable Textbox with Radio Button

Hi,

I would like to enable the textbox according to selected radio button (these are located in node properties box). Normally, I would do this via JQUERY, but I have no idea how can I do this in Node-RED.
htmlissue
So in this case, if user selects Local Name and put some text on the text box, I will get that data in my {customnode.js} file.

Is this a custom contrib node you are developing?

@Steve-Mcl Yes.

then you can use JQuery (it is included with the node-red editor)

Better still, use the typedInput widget e.g...

70nmpNJSF7

PS: I will move this thread to the correct forum category.

@Steve-Mcl Thanks. But it seems that radio buttons are not supported?

Node edit dialog : Node-RED. I can't see them here.

Of course they are supported, its just HTML + JQuery

However, if you want dynamic input capability (i.e. permitting the user to send the "name" in a msg property (like msg.name or msg.payload) then the "made for this purpose" typedInput is a much better solution.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.