Problems with layouts using groups

I'm trying to use a dashboard to create a lock management interface. Based on certain input, I want to show/hide certain elements. That requires me to use groups. The problem is, groups create new columns and I lose the ability to manage layout in an intelligent way. It looks great on a mobile device but it's a mess on anything bigger.

If a 1x1 widget is a fixed size in pixels and screens are a variety of sizes, how can I build a form that stays vertical using groups?

Here's my flow. I'd appreciate any advice.

[{"id":"9ae333b2.60092","type":"tab","label":"Dashboard-Lock","disabled":false,"info":""},{"id":"c1eaa499.65c098","type":"ui_text_input","z":"9ae333b2.60092","name":"","label":"Name","tooltip":"Dog Walker","group":"1533885a.f85c78","order":1,"width":"6","height":"1","passthru":true,"mode":"text","delay":"600","topic":"Name","x":170,"y":40,"wires":[["251d72dc.7bc21e"]]},{"id":"1042d039.18592","type":"ui_text_input","z":"9ae333b2.60092","name":"","label":"Code","tooltip":"1234","group":"1533885a.f85c78","order":2,"width":"6","height":"1","passthru":true,"mode":"text","delay":"600","topic":"Code","x":170,"y":80,"wires":[["63cf84a8.9fc9bc"]]},{"id":"34c243be.124c9c","type":"inject","z":"9ae333b2.60092","name":"","topic":"","payload":"","payloadType":"str","repeat":"","crontab":"","once":true,"onceDelay":0.1,"x":210,"y":880,"wires":[["dc78558e.5bbb18","f0400eb5.39f2d"]]},{"id":"92208dbf.20d2c","type":"switch","z":"9ae333b2.60092","name":"","property":"payload","propertyType":"msg","rules":[{"t":"true"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":710,"y":540,"wires":[["b23c91ba.36e82"],["c18010b0.dbe06"]]},{"id":"453a4972.75b388","type":"ui_date_picker","z":"9ae333b2.60092","name":"","label":"Start Date","group":"2e803d33.9c8242","order":1,"width":"6","height":"2","passthru":true,"topic":"date_begin","x":1300,"y":540,"wires":[["c5a79da6.036a6"]]},{"id":"2bf27dfa.a5b2d2","type":"ui_ui_control","z":"9ae333b2.60092","name":"","x":1020,"y":540,"wires":[["6da60c2f.837ab4"]]},{"id":"b23c91ba.36e82","type":"function","z":"9ae333b2.60092","name":"Hide","func":"msg.payload = {\"group\":{\"hide\":[\"LockManager_BeginDate\"]}};\nreturn msg;","outputs":1,"noerr":0,"x":850,"y":520,"wires":[["2bf27dfa.a5b2d2"]]},{"id":"c18010b0.dbe06","type":"function","z":"9ae333b2.60092","name":"Show","func":"msg.payload = {\"group\":{\"show\":[\"LockManager_BeginDate\"]}};\nreturn msg;","outputs":1,"noerr":0,"x":850,"y":560,"wires":[["2bf27dfa.a5b2d2"]]},{"id":"589780d3.8e535","type":"switch","z":"9ae333b2.60092","name":"","property":"payload","propertyType":"msg","rules":[{"t":"false"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":710,"y":620,"wires":[["7b24449b.e0bfdc"],["5347435b.7598dc"]]},{"id":"b38ea536.5c4248","type":"ui_date_picker","z":"9ae333b2.60092","name":"","label":"End Date","group":"40c508f7.ac7b88","order":1,"width":"6","height":"2","passthru":true,"topic":"date_begin","x":1320,"y":620,"wires":[["833675ff.c21418"]]},{"id":"7b24449b.e0bfdc","type":"function","z":"9ae333b2.60092","name":"Hide","func":"msg.payload = {\"group\":{\"hide\":[\"LockManager_EndDate\"]}};\nreturn msg;","outputs":1,"noerr":0,"x":850,"y":600,"wires":[["c7d6ee58.07c2f"]]},{"id":"5347435b.7598dc","type":"function","z":"9ae333b2.60092","name":"Show","func":"msg.payload = {\"group\":{\"show\":[\"LockManager_EndDate\"]}};\nreturn msg;","outputs":1,"noerr":0,"x":850,"y":640,"wires":[["c7d6ee58.07c2f"]]},{"id":"3012c438.612d6c","type":"function","z":"9ae333b2.60092","name":"Check Start Now","func":"msg.payload = true;\nmsg.enabled = true;\nreturn msg;\n","outputs":1,"noerr":0,"x":190,"y":540,"wires":[["3eebdc56.2fb7e4"]]},{"id":"189dae61.9f1222","type":"function","z":"9ae333b2.60092","name":"Check Has End","func":"msg.payload = false;\nmsg.enabled = true;\nreturn msg;\n","outputs":1,"noerr":0,"x":200,"y":620,"wires":[["de2df3e7.44b45"]]},{"id":"9bce7156.5daad","type":"function","z":"9ae333b2.60092","name":"Build Types","func":"var types = [{\"title\":\"Type\",\"menu\":[\"Permanent\",\"Scheduled\",\"One-time\"]}];\nmsg.payload = types;\nmsg.topic = \"Type\";\nreturn msg;","outputs":1,"noerr":0,"x":170,"y":300,"wires":[["a4ef94bc.228af8"]]},{"id":"a4ef94bc.228af8","type":"ui_list","z":"9ae333b2.60092","group":"885f02d4.d932a","name":"Type","order":1,"width":"3","height":"1","lineType":"one","actionType":"menu","allowHTML":false,"x":310,"y":300,"wires":[["d6c9c6a8.64b178","ebc6532c.3e9e8"]]},{"id":"d6c9c6a8.64b178","type":"ui_text","z":"9ae333b2.60092","group":"885f02d4.d932a","order":2,"width":"3","height":"1","name":"Type - Selected","label":"","format":"{{msg.payload.selected}}","layout":"row-center","x":460,"y":260,"wires":[]},{"id":"400bde39.f12e9","type":"function","z":"9ae333b2.60092","name":"End Date","func":"msg.payload = Date.now();\nreturn msg;","outputs":1,"noerr":0,"x":1180,"y":620,"wires":[["b38ea536.5c4248"]]},{"id":"6da60c2f.837ab4","type":"function","z":"9ae333b2.60092","name":"Start Date","func":"msg.payload = Date.now();\nreturn msg;","outputs":1,"noerr":0,"x":1160,"y":540,"wires":[["453a4972.75b388"]]},{"id":"e494dfae.9d37c","type":"ui_text_input","z":"9ae333b2.60092","name":"","label":"Start Time","tooltip":"","group":"b5ace96a.93e808","order":4,"width":0,"height":0,"passthru":true,"mode":"time","delay":300,"topic":"","x":1910,"y":200,"wires":[["10adfb26.7ef1a5"]]},{"id":"d8c6989c.2b8588","type":"ui_text_input","z":"9ae333b2.60092","name":"","label":"EndTime","tooltip":"","group":"b5ace96a.93e808","order":5,"width":0,"height":0,"passthru":true,"mode":"time","delay":300,"topic":"","x":1900,"y":240,"wires":[["fa5ab7b6.e66eb8"]]},{"id":"9d5a4a55.6a82f8","type":"switch","z":"9ae333b2.60092","name":"","property":"payload.isChecked","propertyType":"msg","rules":[{"t":"false"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":1330,"y":220,"wires":[["7346da1b.f17574"],["defbe0e1.a8bc9"]]},{"id":"dd7eb1c7.805e2","type":"ui_ui_control","z":"9ae333b2.60092","name":"","x":1600,"y":220,"wires":[["f97395f2.5f5438"]]},{"id":"7346da1b.f17574","type":"function","z":"9ae333b2.60092","name":"Hide","func":"msg.payload = {\"group\":{\"hide\":[\"LockManager_RestrictHours\"]}};\nreturn msg;","outputs":1,"noerr":0,"x":1450,"y":200,"wires":[["dd7eb1c7.805e2"]]},{"id":"defbe0e1.a8bc9","type":"function","z":"9ae333b2.60092","name":"Show","func":"msg.payload = {\"group\":{\"show\":[\"LockManager_RestrictHours\"]}};\nreturn msg;","outputs":1,"noerr":0,"x":1450,"y":240,"wires":[["dd7eb1c7.805e2"]]},{"id":"dea416e6.5451c8","type":"function","z":"9ae333b2.60092","name":"Restrict Hours","func":"msg.payload = true;\nmsg.enabled = true;\nreturn msg;\n\n","outputs":1,"noerr":0,"x":760,"y":220,"wires":[["c9ac914.72cd07"]]},{"id":"f97395f2.5f5438","type":"function","z":"9ae333b2.60092","name":"Default time","func":"msg.payload = '';\nreturn msg;","outputs":1,"noerr":0,"x":1750,"y":220,"wires":[["e494dfae.9d37c","d8c6989c.2b8588"]]},{"id":"d90e0dde.de4fc","type":"switch","z":"9ae333b2.60092","name":"","property":"payload.selected","propertyType":"msg","rules":[{"t":"eq","v":"Scheduled","vt":"str"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":590,"y":300,"wires":[["6d354e91.1dc5c"],["5b1edcea.c16404"]]},{"id":"7e6efd5c.f6d394","type":"ui_ui_control","z":"9ae333b2.60092","name":"","x":880,"y":300,"wires":[["49906031.ca14c"]]},{"id":"5b1edcea.c16404","type":"function","z":"9ae333b2.60092","name":"Hide","func":"msg.payload = {\"group\":{\"hide\":[\"LockManager_Schedule\"]}};\nreturn msg;\n","outputs":1,"noerr":0,"x":730,"y":340,"wires":[["7e6efd5c.f6d394"]]},{"id":"6d354e91.1dc5c","type":"function","z":"9ae333b2.60092","name":"Show","func":"msg.payload = {\"group\":{\"show\":[\"LockManager_Schedule\"]}};\nreturn msg;","outputs":1,"noerr":0,"x":730,"y":260,"wires":[["7e6efd5c.f6d394","dea416e6.5451c8"]]},{"id":"85b4fa06.e50458","type":"ui_list","z":"9ae333b2.60092","group":"d31a6c1a.3ef84","name":"Days","order":2,"width":"6","height":"7","lineType":"one","actionType":"check","allowHTML":false,"x":1170,"y":300,"wires":[["3562d307.6df1ac","6178deda.b7662"]]},{"id":"49906031.ca14c","type":"function","z":"9ae333b2.60092","name":"Build Days","func":"var days = [{\"title\":\"Sunday\",\"isChecked\":false},{\"title\":\"Monday\"},{\"title\":\"Tuesday\"},{\"title\":\"Wednesday\"},{\"title\":\"Thursday\"},{\"title\":\"Friday\"},{\"title\":\"Saturday\"}];\nmsg.payload = days;\nmsg.topic = \"Day\";\nreturn msg;\n\n","outputs":1,"noerr":0,"x":1030,"y":300,"wires":[["85b4fa06.e50458"]]},{"id":"2e6df7e9.590e38","type":"function","z":"9ae333b2.60092","name":"Enabled?","func":"msg.payload = false;\nmsg.enabled = true;\nreturn msg;\n","outputs":1,"noerr":0,"x":220,"y":680,"wires":[["95065fc.fce31a"]]},{"id":"251d72dc.7bc21e","type":"change","z":"9ae333b2.60092","name":"","rules":[{"t":"set","p":"name","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":320,"y":40,"wires":[[]]},{"id":"63cf84a8.9fc9bc","type":"change","z":"9ae333b2.60092","name":"","rules":[{"t":"set","p":"code","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":310,"y":80,"wires":[[]]},{"id":"ebc6532c.3e9e8","type":"change","z":"9ae333b2.60092","name":"","rules":[{"t":"set","p":"type","pt":"flow","to":"payload.selected","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":450,"y":300,"wires":[["d90e0dde.de4fc"]]},{"id":"833675ff.c21418","type":"change","z":"9ae333b2.60092","name":"","rules":[{"t":"set","p":"end_date","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1490,"y":620,"wires":[[]]},{"id":"c5a79da6.036a6","type":"change","z":"9ae333b2.60092","name":"","rules":[{"t":"set","p":"start_date","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1470,"y":540,"wires":[[]]},{"id":"fa5ab7b6.e66eb8","type":"change","z":"9ae333b2.60092","name":"","rules":[{"t":"set","p":"end_time","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":2090,"y":240,"wires":[[]]},{"id":"10adfb26.7ef1a5","type":"change","z":"9ae333b2.60092","name":"","rules":[{"t":"set","p":"start_time","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":2090,"y":200,"wires":[[]]},{"id":"d886e9d7.e063b8","type":"change","z":"9ae333b2.60092","name":"","rules":[{"t":"set","p":"restricted_hours","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1150,"y":220,"wires":[["9d5a4a55.6a82f8"]]},{"id":"eedde818.dfdb98","type":"change","z":"9ae333b2.60092","name":"","rules":[{"t":"set","p":"start_now","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":550,"y":540,"wires":[["92208dbf.20d2c"]]},{"id":"4da5ac2e.86e7d4","type":"change","z":"9ae333b2.60092","name":"","rules":[{"t":"set","p":"has_end","pt":"flow","to":"payload.isChecked","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":550,"y":620,"wires":[["589780d3.8e535"]]},{"id":"58905156.91f9d","type":"change","z":"9ae333b2.60092","name":"","rules":[{"t":"set","p":"code_enabled","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":560,"y":680,"wires":[[]]},{"id":"de2df3e7.44b45","type":"ui_switch","z":"9ae333b2.60092","name":"","label":"Has end?","tooltip":"","group":"1533885a.f85c78","order":2,"width":"6","height":"1","passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":380,"y":620,"wires":[["4da5ac2e.86e7d4"]]},{"id":"c7d6ee58.07c2f","type":"ui_ui_control","z":"9ae333b2.60092","name":"","x":1020,"y":620,"wires":[["400bde39.f12e9"]]},{"id":"5ea3640c.8cf46c","type":"link in","z":"9ae333b2.60092","name":"","links":["5df40fe6.74833","dc78558e.5bbb18"],"x":55,"y":540,"wires":[["3012c438.612d6c"]]},{"id":"af8a072.95a15f8","type":"link in","z":"9ae333b2.60092","name":"","links":["5df40fe6.74833","dc78558e.5bbb18"],"x":55,"y":620,"wires":[["189dae61.9f1222"]]},{"id":"2cf1dd55.2635e2","type":"link in","z":"9ae333b2.60092","name":"","links":["5df40fe6.74833","dc78558e.5bbb18"],"x":55,"y":680,"wires":[["2e6df7e9.590e38"]]},{"id":"3d424ae6.f35396","type":"link in","z":"9ae333b2.60092","name":"","links":["5df40fe6.74833","dc78558e.5bbb18"],"x":55,"y":300,"wires":[["9bce7156.5daad"]]},{"id":"a6e2f166.da54a","type":"link in","z":"9ae333b2.60092","name":"","links":["5df40fe6.74833","dc78558e.5bbb18"],"x":335,"y":260,"wires":[["d6c9c6a8.64b178"]]},{"id":"95065fc.fce31a","type":"ui_switch","z":"9ae333b2.60092","name":"","label":"Enabled","tooltip":"","group":"347c090b.574c76","order":2,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":380,"y":680,"wires":[["58905156.91f9d"]]},{"id":"3eebdc56.2fb7e4","type":"ui_switch","z":"9ae333b2.60092","name":"","label":"Start now?","tooltip":"","group":"fd1e6959.05e748","order":2,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":370,"y":540,"wires":[["eedde818.dfdb98"]]},{"id":"c9ac914.72cd07","type":"ui_switch","z":"9ae333b2.60092","name":"Restrict Hours?","label":"Restrict Hours?","tooltip":"","group":"d31a6c1a.3ef84","order":2,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","x":940,"y":220,"wires":[["d886e9d7.e063b8"]]},{"id":"cdfd2a1d.692ea8","type":"link in","z":"9ae333b2.60092","name":"","links":["5df40fe6.74833","dc78558e.5bbb18"],"x":915,"y":340,"wires":[["49906031.ca14c"]]},{"id":"11d36dc1.e97882","type":"link in","z":"9ae333b2.60092","name":"","links":["5df40fe6.74833","dc78558e.5bbb18"],"x":735,"y":500,"wires":[["b23c91ba.36e82"]]},{"id":"205c573e.1efb38","type":"link in","z":"9ae333b2.60092","name":"","links":["5df40fe6.74833","dc78558e.5bbb18"],"x":735,"y":580,"wires":[["7b24449b.e0bfdc"]]},{"id":"6984417e.c5485","type":"link in","z":"9ae333b2.60092","name":"","links":["5df40fe6.74833","dc78558e.5bbb18"],"x":615,"y":340,"wires":[["5b1edcea.c16404"]]},{"id":"3c654824.0ce5f8","type":"function","z":"9ae333b2.60092","name":"","func":"msg.code = flow.get(\"code\");\nmsg.name = flow.get(\"name\");\nmsg.type = flow.get(\"type\");\nmsg.start_now = flow.get(\"start_now\");\nmsg.has_end = flow.get(\"has_end\");\nmsg.start_date = flow.get(\"start_date\");\nmsg.end_date = flow.get(\"end_date\");\nmsg.selected_days = flow.get(\"selected_days\");\nmsg.restricted_hours = flow.get(\"restricted_hours\");\nmsg.start_time = flow.get(\"start_time\");\nmsg.end_time = flow.get(\"end_time\");\nmsg.code_enabled = flow.get(\"code_enabled\");\nmsg.payload = \"\";\nif (msg.name === '') {\n msg.payload = \"Please enter a name for this code.\";\n return [null, msg];\n \n}\nif (!/^\\d{4}$/.test(msg.code)) {\n msg.payload = \"Please enter a 4-digit numeric code.\";\n return [null, msg];\n \n}\nif (msg.type === null || msg.type === undefined || msg.type === '') {\n msg.payload = \"Please select the code type.\";\n return [null, msg];\n} else if (msg.type === 'Scheduled' && msg.restricted_hours && (msg.start_time === undefined || msg.end_time === undefined || msg.start_time === '' || msg.end_time === '')) {\n msg.payload = \"Please turn off restricted hours or enter start and end times.\";\n return [null, msg];\n}\n \nreturn [msg, null];\n\n","outputs":2,"noerr":0,"x":250,"y":940,"wires":[["be7717e6.1a78c8","f0400eb5.39f2d"],["ddf8f80c.ce3f78","48f39881.52e168"]]},{"id":"be7717e6.1a78c8","type":"debug","z":"9ae333b2.60092","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":410,"y":860,"wires":[]},{"id":"a513564e.5d7df8","type":"ui_button","z":"9ae333b2.60092","name":"","group":"347c090b.574c76","order":0,"width":0,"height":0,"passthru":false,"label":"Submit","tooltip":"","color":"","bgcolor":"","icon":"","payload":"[]","payloadType":"json","topic":"","x":120,"y":940,"wires":[["3c654824.0ce5f8"]]},{"id":"dc78558e.5bbb18","type":"link out","z":"9ae333b2.60092","name":"Submit","links":["5ea3640c.8cf46c","af8a072.95a15f8","2cf1dd55.2635e2","3d424ae6.f35396","a6e2f166.da54a","7170f0c.c7e581","cdfd2a1d.692ea8","11d36dc1.e97882","7755ad37.18ad54","29156f81.28958","205c573e.1efb38","6984417e.c5485","be2fae51.311f7","a2121818.316d48","9050917b.bf593","aa71426c.c5cc","2f547806.55ac98"],"x":615,"y":920,"wires":[]},{"id":"be2fae51.311f7","type":"link in","z":"9ae333b2.60092","name":"","links":["5df40fe6.74833","dc78558e.5bbb18"],"x":55,"y":40,"wires":[["c1eaa499.65c098"]]},{"id":"a2121818.316d48","type":"link in","z":"9ae333b2.60092","name":"","links":["5df40fe6.74833","dc78558e.5bbb18"],"x":55,"y":80,"wires":[["1042d039.18592"]]},{"id":"9050917b.bf593","type":"link in","z":"9ae333b2.60092","name":"","links":["5df40fe6.74833","dc78558e.5bbb18"],"x":1355,"y":180,"wires":[["7346da1b.f17574"]]},{"id":"2f547806.55ac98","type":"link in","z":"9ae333b2.60092","name":"","links":["5df40fe6.74833","dc78558e.5bbb18"],"x":355,"y":340,"wires":[["ebc6532c.3e9e8"]]},{"id":"ddf8f80c.ce3f78","type":"ui_toast","z":"9ae333b2.60092","position":"top right","displayTime":"3","highlight":"","outputs":0,"ok":"OK","cancel":"","topic":"","name":"","x":430,"y":960,"wires":[]},{"id":"8c56c212.1da44","type":"debug","z":"9ae333b2.60092","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":1530,"y":400,"wires":[]},{"id":"f0400eb5.39f2d","type":"function","z":"9ae333b2.60092","name":"","func":"flow.set(\"code\", undefined);\nflow.set(\"name\", undefined);\nflow.set(\"type\", undefined);\nflow.set(\"start_now\", undefined);\nflow.set(\"has_end\", undefined);\nflow.set(\"start_date\", undefined);\nflow.set(\"end_date\", undefined);\nflow.set(\"selected_days\", undefined);\nflow.set(\"restricted_hours\", undefined);\nflow.set(\"start_time\", undefined);\nflow.set(\"end_time\", undefined);\nflow.set(\"code_enabled\", undefined);\nmsg = {};\n\nreturn msg;\n\n","outputs":1,"noerr":0,"x":430,"y":920,"wires":[["dc78558e.5bbb18"]]},{"id":"3562d307.6df1ac","type":"change","z":"9ae333b2.60092","name":"","rules":[{"t":"set","p":"selected_days","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1360,"y":300,"wires":[[]]},{"id":"6178deda.b7662","type":"function","z":"9ae333b2.60092","name":"","func":"var daysOfWeek = [\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"]; // array of days sorted\n\nvar days = flow.get(\"selected_days\");\nif (days === undefined || !Array.isArray(days)) days = [];\nif (msg.payload.isChecked) {\n var match = days.includes(msg.payload.title)\n if (!match) days.push(msg.payload.title);\n} else {\n var i = days.indexOf(msg.payload.title)\n if (i >= 0) days.slice(i);\n}\n\nmsg.payload = days.sort(sort);\nreturn msg;\n\nfunction sort(a, b){\n return daysOfWeek.indexOf(a) - daysOfWeek.indexOf(b); // basic sort function that compares the indexes of the two days\n}\n","outputs":1,"noerr":0,"x":1320,"y":400,"wires":[["8c56c212.1da44"]]},{"id":"48f39881.52e168","type":"debug","z":"9ae333b2.60092","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":390,"y":1000,"wires":[]},{"id":"1533885a.f85c78","type":"ui_group","z":"","name":"NameAndCode","tab":"cdbc3f48.24bf2","order":1,"disp":false,"width":"6","collapse":false},{"id":"2e803d33.9c8242","type":"ui_group","z":"","name":"BeginDate","tab":"cdbc3f48.24bf2","order":6,"disp":false,"width":"6","collapse":false},{"id":"40c508f7.ac7b88","type":"ui_group","z":"","name":"EndDate","tab":"cdbc3f48.24bf2","order":8,"disp":false,"width":"6","collapse":false},{"id":"885f02d4.d932a","type":"ui_group","z":"","name":"Type","tab":"cdbc3f48.24bf2","order":2,"disp":false,"width":"6","collapse":false},{"id":"b5ace96a.93e808","type":"ui_group","z":"","name":"RestrictHours","tab":"cdbc3f48.24bf2","order":4,"disp":false,"width":"6","collapse":false},{"id":"d31a6c1a.3ef84","type":"ui_group","z":"","name":"Schedule","tab":"cdbc3f48.24bf2","order":3,"disp":false,"width":"6","collapse":false},{"id":"347c090b.574c76","type":"ui_group","z":"","name":"Submit","tab":"cdbc3f48.24bf2","order":10,"disp":false,"width":"6","collapse":false},{"id":"fd1e6959.05e748","type":"ui_group","z":"","name":"StartNow","tab":"cdbc3f48.24bf2","order":5,"disp":false,"width":"6","collapse":false},{"id":"cdbc3f48.24bf2","type":"ui_tab","z":"","name":"LockManager","icon":"dashboard","order":1,"disabled":false,"hidden":false}]

Your flow can not be imported - please read this thread and then edit your post.

Weird, I thought I had done that. Should be better now.

I think the problem is that the dashboard is built to be responsive. That means things will shift around as the window size changes.

You might want to look at node-red-contrib-uibuilder