I have stripped down the system to the following:
[{"id":"d4cb63fb.6579c8","type":"tab","label":"Map","disabled":false,"info":""},{"id":"d83276af.9cc65","type":"tab","label":"Map event processing","disabled":false,"info":""},{"id":"83c571cd.d1e4e","type":"ui_base","theme":{"name":"theme-light","lightTheme":{"default":"#0094CE","baseColor":"#0b00c6","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif","edited":true,"reset":false},"darkTheme":{"default":"#097479","baseColor":"#097479","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif","edited":true,"reset":false},"customTheme":{"name":"Untitled Theme 1","default":"#4B7930","baseColor":"#4B7930","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"},"themeState":{"base-color":{"default":"#0094CE","value":"#0b00c6","edited":true},"page-titlebar-backgroundColor":{"value":"#0b00c6","edited":false},"page-backgroundColor":{"value":"#fafafa","edited":false},"page-sidebar-backgroundColor":{"value":"#333333","edited":false},"group-textColor":{"value":"#2113ff","edited":false},"group-borderColor":{"value":"#ffffff","edited":false},"group-backgroundColor":{"value":"#ffffff","edited":false},"widget-textColor":{"value":"#111111","edited":false},"widget-backgroundColor":{"value":"#0b00c6","edited":false},"widget-borderColor":{"value":"#ffffff","edited":false},"base-font":{"value":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"}},"angularTheme":{"primary":"indigo","accents":"blue","warn":"red","background":"grey"}},"site":{"name":"Node-RED Dashboard","hideToolbar":"true","allowSwipe":"false","lockMenu":"false","allowTempTheme":"true","dateFormat":"DD/MM/YYYY","sizes":{"sx":36,"sy":36,"gx":6,"gy":6,"cx":6,"cy":6,"px":0,"py":0}}},{"id":"6846504f.f1de98","type":"ui_group","name":"Map","tab":"ef10a04c.589f3","order":9,"disp":true,"width":"20","collapse":false},{"id":"ef10a04c.589f3","type":"ui_tab","name":"Map","icon":"dashboard","order":1,"disabled":false,"hidden":false},{"id":"dd1c4008.90e058","type":"mongodb","hostname":"mi.rv91d.mongodb.net","topology":"dnscluster","connectOptions":"","port":"27017","db":"Marchwood","name":""},{"id":"b882e701.f0f3c","type":"ui_group","name":"Sensor - Digital","tab":"ef10a04c.589f3","order":6,"disp":true,"width":"10","collapse":false},{"id":"ef1497f2.8aaa58","type":"ui_group","name":"Node","tab":"ef10a04c.589f3","order":3,"disp":true,"width":"10","collapse":false},{"id":"e19bb157.6bdd6","type":"ui_group","name":"live_status","tab":"1441c09c.a4763f","order":1,"disp":true,"width":"20","collapse":false},{"id":"46f1dfa3.1c556","type":"ui_tab","name":"Site Plans","icon":"dashboard","order":2,"disabled":false,"hidden":false},{"id":"dc429e9.25491e","type":"ui_group","name":"table","tab":"46f1dfa3.1c556","order":2,"disp":false,"width":"20","collapse":false},{"id":"1441c09c.a4763f","type":"ui_tab","name":"Live status","icon":"dashboard","order":3,"disabled":false,"hidden":false},{"id":"8322d1cb.b5f6","type":"mqtt-broker","name":"mi","broker":"127.0.0.1","port":"1883","clientid":"","usetls":false,"compatmode":false,"protocolVersion":"4","keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"sessionExpiry":""},{"id":"331a4514.d51e8a","type":"influxdb","hostname":"127.0.0.1","port":"8086","protocol":"http","database":"telegraf","name":"Base","usetls":false,"tls":"","influxdbVersion":"1.8-flux","url":"http://localhost:8086/","rejectUnauthorized":true},{"id":"2ff2a476.a6d2ec","type":"influxdb","hostname":"127.0.0.1","port":"8086","protocol":"http","database":"NODES","name":"test 1.8 flux","usetls":false,"tls":"d50d0c9f.31e858","influxdbVersion":"1.x","url":"https://localhost:8086","rejectUnauthorized":false},{"id":"d50d0c9f.31e858","type":"tls-config","name":"","cert":"","key":"","ca":"","certname":"","keyname":"","caname":"","servername":"","verifyservercert":false},{"id":"4c6c1d4d.99d704","type":"influxdb","hostname":"127.0.0.1","port":"8086","protocol":"http","database":"Boiler1","name":"","usetls":false,"tls":"","influxdbVersion":"1.x"},{"id":"1a45cdd4.2db222","type":"ui_group","name":"Default","tab":"35ff53eb.0e3c8c","order":1,"disp":true,"width":"6","collapse":false},{"id":"35ff53eb.0e3c8c","type":"ui_tab","name":"Menu","icon":"fa-tachometer","order":1,"disabled":false,"hidden":false},{"id":"165e1e1a.e752fa","type":"ui_group","name":"Default","tab":"f9b58883.fa613","order":1,"disp":true,"width":"12","collapse":false},{"id":"f9b58883.fa613","type":"ui_tab","name":"Home","icon":"dashboard","order":1,"disabled":false,"hidden":false},{"id":"9869c8c7.a2bfa8","type":"ui_group","name":"Logo","tab":"ef10a04c.589f3","order":1,"disp":false,"width":"6","collapse":false},{"id":"d6afe955.2cb938","type":"ui_group","name":"Options","tab":"ef10a04c.589f3","order":4,"disp":true,"width":"6","collapse":false},{"id":"3eb5aae1.a8a296","type":"ui_group","name":"Tabs","tab":"ef10a04c.589f3","order":2,"disp":false,"width":25,"collapse":false},{"id":"2f77378f.aa8938","type":"ui_group","name":"Admin Login","tab":"ef10a04c.589f3","order":11,"disp":true,"width":"6","collapse":false},{"id":"30cf7e42.eb0802","type":"ui_group","name":"Admin Options","tab":"ef10a04c.589f3","order":8,"disp":true,"width":"6","collapse":false},{"id":"904d0520.5a38f8","type":"ui_group","name":"Current States","tab":"ef10a04c.589f3","order":10,"disp":true,"width":"10","collapse":false},{"id":"d3896566.fde8b8","type":"influxdb","hostname":"127.0.0.1","port":"8086","protocol":"http","database":"alarms","name":"Alarms","usetls":false,"tls":"d50d0c9f.31e858","influxdbVersion":"1.x","url":"http://localhost:8086","rejectUnauthorized":true},{"id":"6b206ee8.a5a8b","type":"ui_spacer","name":"spacer","group":"3eb5aae1.a8a296","order":1,"width":25,"height":1},{"id":"113a7b1b.9e91d5","type":"ui_spacer","name":"spacer","group":"3eb5aae1.a8a296","order":2,"width":25,"height":1},{"id":"60164282.56a36c","type":"ui_group","name":"Add Site Plan","tab":"ef10a04c.589f3","order":12,"disp":true,"width":"6","collapse":false},{"id":"468d32cc.a7c5ec","type":"ui_tab","name":"History","icon":"dashboard","order":6,"disabled":false,"hidden":false},{"id":"520f753e.322f2c","type":"ui_group","name":"Logo","tab":"468d32cc.a7c5ec","order":1,"disp":false,"width":"6","collapse":false},{"id":"784c5b3f.cb6174","type":"ui_group","name":"Current State - Ana","tab":"468d32cc.a7c5ec","order":3,"disp":true,"width":"6","collapse":false},{"id":"900b2b53.5d21a8","type":"ui_group","name":"History","tab":"468d32cc.a7c5ec","order":4,"disp":true,"width":25,"collapse":false},{"id":"392f2642.3fc0ca","type":"ui_group","name":"States","tab":"468d32cc.a7c5ec","order":6,"disp":true,"width":"6","collapse":false},{"id":"750a13c5.43476c","type":"ui_group","name":"Options","tab":"468d32cc.a7c5ec","order":5,"disp":true,"width":"6","collapse":false},{"id":"4edfae8b.b8925","type":"ui_group","name":"Tab","tab":"468d32cc.a7c5ec","order":2,"disp":false,"width":"25","collapse":false},{"id":"7a3f5ae1.471a44","type":"ui_spacer","name":"spacer","group":"4edfae8b.b8925","order":2,"width":25,"height":1},{"id":"f506fbff.dd0c58","type":"ui_spacer","name":"spacer","group":"4edfae8b.b8925","order":3,"width":25,"height":1},{"id":"5fc54fbe.6b239","type":"ui_group","name":"Current State - Digital","tab":"468d32cc.a7c5ec","order":7,"disp":true,"width":"6","collapse":false},{"id":"b3c7385d.7ef6b8","type":"ui_group","name":"Options","tab":"46f1dfa3.1c556","order":1,"disp":true,"width":"6","collapse":false},{"id":"4f772a41.aa3f04","type":"ui_group","name":"Remove Plan","tab":"46f1dfa3.1c556","order":3,"disp":true,"width":"6","collapse":false},{"id":"13012f65.4b78d1","type":"ui_group","name":"Sensor Type","tab":"ef10a04c.589f3","order":5,"disp":true,"width":"6","collapse":false},{"id":"5501654f.4bb61c","type":"ui_group","name":"Sensor - Analogue","tab":"ef10a04c.589f3","order":7,"disp":true,"width":"6","collapse":false},{"id":"3d9e45e.bcd50ba","type":"ui_group","name":"Radial Gauges","tab":"e625ce36.34cf3","order":2,"disp":true,"width":"6","collapse":false},{"id":"e625ce36.34cf3","type":"ui_tab","name":"Widgets","icon":"dashboard","order":2,"disabled":false,"hidden":true},{"id":"22e421c8.26678e","type":"debug","z":"d83276af.9cc65","name":"mapevents","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":390,"y":160,"wires":[]},{"id":"d34e037.47f4e8","type":"worldmap in","z":"d83276af.9cc65","name":"","path":"/dashmap","events":"all","x":140,"y":160,"wires":[["22e421c8.26678e"]]},{"id":"6e620545.d1d34c","type":"comment","z":"d83276af.9cc65","name":"map event processing","info":"","x":180,"y":100,"wires":[]},{"id":"7ee10d5e.317ea4","type":"ui_ui_control","z":"d4cb63fb.6579c8","name":"Dashboard control","events":"all","x":770,"y":600,"wires":[[]]},{"id":"630691ba.0d0908","type":"link in","z":"d4cb63fb.6579c8","name":"dashboard-control-in","links":["34de3848.0ff9f","8c2354ee.9e6a1","f2b4b65c.58ea7","fa3a0248.2d13f","aeaca535.289e8","ea3c11d6.bb17a","926c56fd.48cdd8","1c63e585.e02cea","1f62048d.f10ff3","524a3826.d2d0f","9eb74d86.f5fb9","b5365325.ae368","79839700.3e8bf8","b11baf66.56eeb","8938e88b.1cacc8","8cbb7930.68eb08"],"x":615,"y":600,"wires":[["7ee10d5e.317ea4","a8e1a662.d4f198"]]},{"id":"a5d5776e.f63358","type":"link in","z":"d4cb63fb.6579c8","name":"dashmap-in","links":["c562b309.20c15"],"x":635,"y":360,"wires":[["7a914636.11bf8","47fb350e.54f03c"]]},{"id":"d32f539c.f97a48","type":"comment","z":"d4cb63fb.6579c8","name":"The dashboard map panel","info":"","x":150,"y":180,"wires":[]},{"id":"f31c3343.1715f8","type":"comment","z":"d4cb63fb.6579c8","name":"The dashboard control node","info":"","x":760,"y":500,"wires":[]},{"id":"47fb350e.54f03c","type":"debug","z":"d4cb63fb.6579c8","name":"map control input","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":770,"y":320,"wires":[]},{"id":"98d6bad.8932d48","type":"comment","z":"d4cb63fb.6579c8","name":"TODO and ideas","info":"No particular order.\n\nPlan overlay from georeferenced image, or wms raster. Drag and drop?\n\nTime series plots.","x":710,"y":60,"wires":[]},{"id":"7a914636.11bf8","type":"ui_worldmap","z":"d4cb63fb.6579c8","group":"6846504f.f1de98","order":1,"width":20,"height":15,"name":"dashmap","lat":"50.86928","lon":"-1.85308","zoom":"2","layer":"OSM","cluster":"","maxage":"","usermenu":"show","layers":"show","panit":"false","panlock":"false","zoomlock":"false","hiderightclick":"false","coords":"none","showgrid":"false","allowFileDrop":"true","path":"/dashmap","x":760,"y":420,"wires":[]},{"id":"293b9438.63de4c","type":"ui_toast","z":"d4cb63fb.6579c8","position":"top right","displayTime":"3","highlight":"","sendall":true,"outputs":0,"ok":"OK","cancel":"","raw":false,"topic":"","name":"notifications","x":760,"y":680,"wires":[]},{"id":"3e62503b.7dafb8","type":"link in","z":"d4cb63fb.6579c8","name":"notifications-in","links":["5fd23e06.f2ef1","1966cb27.a12295","833954b9.24081","9613c50.a545738","6044595e.b9dd7"],"x":615,"y":660,"wires":[["293b9438.63de4c"]]},{"id":"a8e1a662.d4f198","type":"debug","z":"d4cb63fb.6579c8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":800,"y":560,"wires":[]},{"id":"f8d8dd92.8e025","type":"inject","z":"d4cb63fb.6579c8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":400,"wires":[["8648746.086f988"]]},{"id":"8648746.086f988","type":"function","z":"d4cb63fb.6579c8","name":"","func":"var codeBlock_true = '<div class=\"content\">' +\n '<p>Parent : Testing</p>' +\n '<p>Parent : Testing</p>' +\n '<p style=\"color:red\">State : true </p>' +\n '<button name=\"History\" onmouseover=\\'addToForm(\"name\",\"testname\"), addToForm(\"node\",\"00.00.00\")\\' onclick=\\'feedback(this.name,\"$form\",\"History\",true)\\'>History</button>' +\n '</div>';\n \nmapMsg = {} \nmapMsg.payload = {}\nmapMsg.payload.name = \"testing\"\nmapMsg.payload.layer = \"Nodes\"\nmapMsg.payload.icon = \"fa-upload\"\nmapMsg.payload.iconColor = \"#ff0000\"\nmapMsg.payload.id = \"node.properties.mesh_address\"\nmapMsg.payload.lon = -1.837366\nmapMsg.payload.lat = 51.004608\nmapMsg.payload.popup = codeBlock_true\nmsg = mapMsg\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":380,"y":400,"wires":[["7a914636.11bf8","e41b597d.fd7518","7ee10d5e.317ea4"]]},{"id":"e41b597d.fd7518","type":"debug","z":"d4cb63fb.6579c8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":490,"y":320,"wires":[]}]
This demonstrates that the issue is with the popups button click requiring a right click input before triggering. Any ideas on how to hard set the value of a right click/ an alternative method to avoid this would be much appreciated.