Hello I am working on a project where i have 4 tabs. And i am taking user input through text boxes ,drop downs and switches and my output gets stored in the file in json format . Right now after taking input and clicking the submit button data gets stored in the file. But if I want to take new input the previous inputs are already present on ui. My question is , can we refresh the page? And after refreshing , will all the input fields get cleared? Is there any node available which can clear the past inputs? If yes then how to use it.
Does the solution suggested on the thread where you asked the same question yesterday not work?
Hello sir ,thanks for your reply,actually I didn't understand where to exactly make the changes.
Could you please tell me where to make changes in my flow?
Here is my flow:
[{"id":"df65d8de.317e28","type":"tab","label":"Flow 5","disabled":false,"info":""},{"id":"bdadcff0.3ee42","type":"ui_text_input","z":"df65d8de.317e28","name":"","label":"Product Key","tooltip":"","group":"bf5fa16c.651f3","order":1,"width":0,"height":0,"passthru":true,"mode":"text","delay":"0","topic":"Product Key","x":90,"y":60,"wires":[["79a3e738.12bb98"]]},{"id":"7962309d.5cc43","type":"ui_dropdown","z":"df65d8de.317e28","name":"","label":"No. Of Outlets","tooltip":"","place":"","group":"bf5fa16c.651f3","order":3,"width":0,"height":0,"passthru":true,"options":[{"label":"","value":"Select","type":"str"},{"label":"","value":1,"type":"num"},{"label":"","value":2,"type":"num"},{"label":"","value":3,"type":"num"},{"label":"","value":4,"type":"num"},{"label":"","value":5,"type":"num"},{"label":"","value":6,"type":"num"},{"label":"","value":7,"type":"num"},{"label":"","value":8,"type":"num"},{"label":"","value":9,"type":"num"},{"label":"","value":10,"type":"num"},{"label":"","value":11,"type":"num"},{"label":"","value":12,"type":"num"},{"label":"","value":13,"type":"num"},{"label":"","value":14,"type":"num"},{"label":"","value":15,"type":"num"},{"label":"","value":16,"type":"num"},{"label":"","value":17,"type":"num"},{"label":"","value":18,"type":"num"},{"label":"","value":19,"type":"num"},{"label":"","value":20,"type":"num"},{"label":"","value":21,"type":"num"},{"label":"","value":22,"type":"num"},{"label":"","value":23,"type":"num"},{"label":"","value":24,"type":"num"},{"label":"","value":25,"type":"num"},{"label":"","value":26,"type":"num"},{"label":"","value":27,"type":"num"},{"label":"","value":28,"type":"num"},{"label":"","value":29,"type":"num"},{"label":"","value":30,"type":"num"},{"label":"","value":31,"type":"num"},{"label":"","value":32,"type":"num"},{"label":"","value":33,"type":"num"},{"label":"","value":34,"type":"num"},{"label":"","value":35,"type":"num"},{"label":"","value":36,"type":"num"},{"label":"","value":37,"type":"num"},{"label":"","value":38,"type":"num"},{"label":"","value":39,"type":"num"},{"label":"","value":40,"type":"num"},{"label":"","value":41,"type":"num"},{"label":"","value":42,"type":"num"},{"label":"","value":43,"type":"num"},{"label":"","value":44,"type":"num"},{"label":"","value":45,"type":"num"},{"label":"","value":46,"type":"num"},{"label":"","value":47,"type":"num"},{"label":"","value":48,"type":"num"},{"label":"","value":49,"type":"num"},{"label":"","value":50,"type":"num"},{"label":"","value":51,"type":"num"},{"label":"","value":52,"type":"num"},{"label":"","value":53,"type":"num"},{"label":"","value":54,"type":"num"},{"label":"","value":55,"type":"num"},{"label":"","value":56,"type":"num"},{"label":"","value":57,"type":"num"},{"label":"","value":58,"type":"num"},{"label":"","value":59,"type":"num"},{"label":"","value":60,"type":"num"},{"label":"","value":61,"type":"num"},{"label":"","value":62,"type":"num"},{"label":"","value":63,"type":"num"},{"label":"","value":64,"type":"num"}],"payload":"","topic":"No. Of Outlets","x":440,"y":60,"wires":[["79a3e738.12bb98"]]},{"id":"43204bc6.3691f4","type":"ui_dropdown","z":"df65d8de.317e28","name":"","label":"Phase","tooltip":"","place":"Select option","group":"bf5fa16c.651f3","order":4,"width":0,"height":0,"passthru":true,"options":[{"label":"","value":"Select","type":"str"},{"label":"","value":"1 Phase","type":"str"},{"label":"","value":"3 Phase","type":"str"}],"payload":"","topic":"Phase","x":70,"y":100,"wires":[["79a3e738.12bb98"]]},{"id":"b0397f15.45f97","type":"ui_dropdown","z":"df65d8de.317e28","name":"","label":"Customer ","tooltip":"","place":"Select option","group":"bf5fa16c.651f3","order":6,"width":0,"height":0,"passthru":true,"options":[{"label":"","value":"Select","type":"str"},{"label":"","value":"Elcom","type":"str"},{"label":"","value":"RITTAL","type":"str"},{"label":"","value":"VERTIV","type":"str"},{"label":"","value":"BKT","type":"str"}],"payload":"","topic":"Customer ","x":360,"y":100,"wires":[["79a3e738.12bb98"]]},{"id":"b386be81.8c612","type":"ui_dropdown","z":"df65d8de.317e28","name":"","label":"Sensor Type (P1)","tooltip":"","place":"Select option","group":"bf5fa16c.651f3","order":7,"width":0,"height":0,"passthru":true,"options":[{"label":"","value":"Select","type":"str"},{"label":"","value":"Temp","type":"str"},{"label":"","value":"Temp & Humidity","type":"str"},{"label":"","value":"Temp(3) & Humidity","type":"str"},{"label":"","value":"Water","type":"str"}],"payload":"","topic":"Sensor Type (P1)","x":530,"y":100,"wires":[["79a3e738.12bb98"]]},{"id":"479c2489.002dac","type":"ui_dropdown","z":"df65d8de.317e28","name":"","label":"Sensor Type (P2)","tooltip":"","place":"Select option","group":"bf5fa16c.651f3","order":8,"width":0,"height":0,"passthru":true,"options":[{"label":"","value":"Select","type":"str"},{"label":"","value":"Temp","type":"str"},{"label":"","value":"Temp & Humidity","type":"str"},{"label":"","value":"Temp(3) & Humidity","type":"str"},{"label":"","value":"Water","type":"str"}],"payload":"","topic":"Sensor Type (P2)","x":90,"y":140,"wires":[["79a3e738.12bb98"]]},{"id":"84c736e2.36e6a8","type":"ui_dropdown","z":"df65d8de.317e28","name":"","label":"Amp Rating","tooltip":"","place":"Select option","group":"bf5fa16c.651f3","order":5,"width":0,"height":0,"passthru":true,"options":[{"label":"","value":"Select","type":"str"},{"label":"","value":"16A","type":"str"},{"label":"","value":"32A","type":"str"},{"label":"","value":"63A","type":"str"}],"payload":"","topic":"Amp Rating","x":210,"y":100,"wires":[["79a3e738.12bb98"]]},{"id":"fc1c1e7e.92bf1","type":"ui_dropdown","z":"df65d8de.317e28","name":"","label":"PDU Type","tooltip":"","place":"Select option","group":"bf5fa16c.651f3","order":2,"width":"0","height":"0","passthru":true,"options":[{"label":"","value":"Select","type":"str"},{"label":"","value":"AM","type":"str"},{"label":"","value":"IM","type":"str"},{"label":"","value":"IMIS","type":"str"},{"label":"","value":"AMIS","type":"str"}],"payload":"","topic":"PDU Type","x":250,"y":60,"wires":[["79a3e738.12bb98"]]},{"id":"f93a1f03.c8dd7","type":"ui_switch","z":"df65d8de.317e28","name":"","label":"No. Of MCBs Used","tooltip":"","group":"bf5fa16c.651f3","order":12,"width":0,"height":0,"passthru":false,"decouple":"false","topic":"No. Of MCBs Used","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":110,"y":180,"wires":[["79a3e738.12bb98"]]},{"id":"37afd265.dbf38e","type":"ui_dropdown","z":"df65d8de.317e28","name":"","label":"No. Of Relay Boards","tooltip":"","place":"Select option","group":"bf5fa16c.651f3","order":10,"width":0,"height":0,"passthru":true,"options":[{"label":"","value":"Select","type":"str"},{"label":"","value":1,"type":"num"},{"label":"","value":"2","type":"str"},{"label":"","value":"3","type":"str"},{"label":"","value":"4","type":"str"},{"label":"","value":"5","type":"str"},{"label":"","value":"6","type":"str"},{"label":"","value":"7","type":"str"},{"label":"","value":"8","type":"str"},{"label":"","value":"9","type":"str"},{"label":"","value":"10","type":"str"}],"payload":"","topic":"No. Of Relay Boards","x":520,"y":140,"wires":[["79a3e738.12bb98"]]},{"id":"f86c026d.fae49","type":"ui_dropdown","z":"df65d8de.317e28","name":"","label":"Enter No. Of MCB","tooltip":"","place":"Select option","group":"bf5fa16c.651f3","order":11,"width":0,"height":0,"passthru":true,"options":[{"label":"","value":"Select","type":"str"},{"label":"","value":1,"type":"num"},{"label":"","value":2,"type":"num"},{"label":"","value":3,"type":"num"},{"label":"","value":4,"type":"num"},{"label":"","value":5,"type":"num"},{"label":"","value":6,"type":"num"},{"label":"","value":7,"type":"num"},{"label":"","value":8,"type":"num"},{"label":"","value":9,"type":"num"},{"label":"","value":10,"type":"num"},{"label":"","value":11,"type":"num"},{"label":"","value":12,"type":"num"},{"label":"","value":13,"type":"num"},{"label":"","value":"14","type":"str"},{"label":"","value":"15","type":"str"},{"label":"","value":"16","type":"str"},{"label":"","value":"17","type":"str"},{"label":"","value":"18","type":"str"},{"label":"","value":"19","type":"str"},{"label":"","value":"20","type":"str"}],"payload":"","topic":"Enter No. Of MCB","x":310,"y":180,"wires":[["79a3e738.12bb98"]]},{"id":"1a09bbac.7a0f34","type":"ui_text_input","z":"df65d8de.317e28","name":"Purchase Order No.","label":"Purchase Order No.","tooltip":"","group":"bf5fa16c.651f3","order":9,"width":0,"height":0,"passthru":true,"mode":"text","delay":"0","topic":"Purchase Order No.","x":300,"y":140,"wires":[["79a3e738.12bb98"]]},{"id":"79a3e738.12bb98","type":"join","z":"df65d8de.317e28","name":"","mode":"custom","build":"object","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":true,"timeout":"","count":"1","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":450,"y":400,"wires":[["8f2fa7d9.7c6568"]]},{"id":"8f2fa7d9.7c6568","type":"change","z":"df65d8de.317e28","name":"","rules":[{"t":"set","p":"selected","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":780,"y":360,"wires":[[]]},{"id":"8168c8f0.487df8","type":"ui_button","z":"df65d8de.317e28","name":"","group":"bf5fa16c.651f3","order":20,"width":0,"height":0,"passthru":false,"label":"button","tooltip":"","color":"","bgcolor":"","icon":"","payload":"","payloadType":"str","topic":"","x":70,"y":500,"wires":[["cacc4589.4b8f28"]]},{"id":"cacc4589.4b8f28","type":"change","z":"df65d8de.317e28","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"selected","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":200,"y":600,"wires":[["b2ab3306.51b6d"]]},{"id":"fb655f61.888a6","type":"debug","z":"df65d8de.317e28","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":670,"y":600,"wires":[]},{"id":"b2ab3306.51b6d","type":"file","z":"df65d8de.317e28","name":"","filename":"C:\\Users\\vishakha\\Desktop\\Node Red\\new","appendNewline":true,"createDir":true,"overwriteFile":"false","encoding":"none","x":470,"y":520,"wires":[["fb655f61.888a6"]]},{"id":"bf5fa16c.651f3","type":"ui_group","z":"","name":"Default","tab":"c65a99fa.aa5468","disp":true,"width":"11","collapse":false},{"id":"c65a99fa.aa5468","type":"ui_tab","z":"","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]
What have you tried?
If you want to send a message to a node how do you think you would do it?
In my flow i am taking multiple inputs from user and once i click the button the entered data gets stored in a file in json format.
GenFirmware.json (73.1 KB) This my project. I just want to clear the past inputs . Please help me out!!
The thread states you need send the form parts an empty msg.payload. Have you tried that?
Okay i will try and post the result.
I would also change the text on the button to 'SUBMIT', add a text msg saying the data has been submitted, and add another button 'RESET' to clear out the data.
did you got that, how to do?
It isn't clear what you are trying to do. Please start a new thread with a description of your problem rather than adding your question to an old thread. If you are just trying to clear the text shown on a dashboard input node then probably all you need do is to send it a message with an empty string in the payload.
i have same problem why to make new thread? However now it's right to make thread with same topic!
in which node i have to send this msg to the form node ??
The original question on this thread is
Is that the same problem you want a solution to? If not then please start a new thread.
sorry but as i have told you above, i need solution for same problem..
Have you followed the suggestions from earlier in the thread?