How to add two text box input to a functon

1.On click button get a pop up color pad
2
2.color pad....
1

3.Each color has different value .
example: color black =61440,RED=1,brown=2...etc

4.Then comes textbox value .
5.i want to add textbox value and color value.

example:-
1.if i select color black and textbox value is 4095
2.i want addition of color black value(61440) and text box value(4095)
3 dispay that one in result text boxCapture

There you go.

2019-04-16_09-25-48

[{"id":"7f00657a.81e08c","type":"ui_colour_picker","z":"9f43aee.ab3dc5","name":"","label":"Colour","group":"944f725.afd9f9","format":"hex","outformat":"string","showSwatch":true,"showPicker":false,"showValue":false,"showHue":false,"showAlpha":false,"showLightness":true,"dynOutput":"true","order":1,"width":0,"height":0,"passthru":true,"topic":"","x":190,"y":100,"wires":[["f0ce5ae7.ded9e8"]]},{"id":"e98132b4.7db35","type":"ui_numeric","z":"9f43aee.ab3dc5","name":"","label":"User input","tooltip":"","group":"944f725.afd9f9","order":2,"width":0,"height":0,"passthru":true,"topic":"","format":"{{value}}","min":0,"max":"65535","step":1,"x":212,"y":159,"wires":[["5d5f5b14.451214"]]},{"id":"6aa8fdf8.e91994","type":"ui_text","z":"9f43aee.ab3dc5","group":"944f725.afd9f9","order":3,"width":0,"height":0,"name":"","label":"Result","format":"{{msg.payload}}","layout":"row-spread","x":750,"y":140,"wires":[]},{"id":"f0ce5ae7.ded9e8","type":"change","z":"9f43aee.ab3dc5","name":"","rules":[{"t":"set","p":"colourval","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":390,"y":100,"wires":[["938fd014.3ee43"]]},{"id":"938fd014.3ee43","type":"function","z":"9f43aee.ab3dc5","name":"add","func":"var colourval = parseInt((flow.get(\"colourval\") || \"0\"), 16);\nmsg.payload = parseInt(flow.get(\"userinput\") || \"0\") + colourval;\nreturn msg;","outputs":1,"noerr":0,"x":610,"y":140,"wires":[["6aa8fdf8.e91994"]]},{"id":"5d5f5b14.451214","type":"change","z":"9f43aee.ab3dc5","name":"","rules":[{"t":"set","p":"userinput","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":390,"y":160,"wires":[["938fd014.3ee43"]]},{"id":"944f725.afd9f9","type":"ui_group","z":"","name":"Default","tab":"e252a1c5.e286","disp":true,"width":"6","collapse":false},{"id":"e252a1c5.e286","type":"ui_tab","z":"","name":"Home","icon":"dashboard"}]

thank you very much..........:pray::pray:

Hey, Sachin what are you working on currently ?

working on iot(color sensor)

Great. carry on.