Thanks for your advise and help.
[
{
"id": "1ee5ca4fb4ae2208",
"type": "tab",
"label": "flow 1",
"disabled": false,
"info": ""
},
{
"id": "73c3e575a599766e",
"type": "ui_template",
"z": "1ee5ca4fb4ae2208",
"group": "e6f2be652af785c5",
"name": "",
"order": 1,
"width": 0,
"height": 0,
"format": "<select id =\"type\">\n <option value =\"1\">Metal</option>\n <option value =\"2\">No-Meal</option>\n</select>\n<br>\n<input type=\"text\" id =\"qty\" value=\"1\" />\n<br>\n<input type=\"button\" value=\"Order Now\" ng-click=\"send({qty:document.getElementById('qty').value})\" />",
"storeOutMessages": true,
"fwdInMessages": true,
"resendOnRefresh": true,
"templateScope": "local",
"x": 280,
"y": 120,
"wires": [
[
"bf8e13ea7f8647d0"
]
]
},
{
"id": "bf8e13ea7f8647d0",
"type": "debug",
"z": "1ee5ca4fb4ae2208",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "qty",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 480,
"y": 120,
"wires": []
},
{
"id": "e6f2be652af785c5",
"type": "ui_group",
"name": "Group 1",
"tab": "1b2433fe711aa897",
"order": 1,
"disp": true,
"width": 6
},
{
"id": "1b2433fe711aa897",
"type": "ui_tab",
"name": "Home",
"icon": "dashboard",
"disabled": false,
"hidden": false
}
]
I just want that when i press button, send payload with some values from template element.
I thought it might easy but wasn't
maybe i need to spend more time with Node-RED and Forum.