# How to connect two UI's

**URL:** <https://discourse.nodered.org/t/how-to-connect-two-uis/31495>\
**Category:** General\
**Created:** [12 August 2020 18:45 UTC](https://discourse.nodered.org/t/how-to-connect-two-uis/31495 "2020-08-12T18:45:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![makram](https://avatars.discourse-cdn.com/v4/letter/m/91b2a8/32.png) [@makram](https://discourse.nodered.org/u/makram)\
**Post date:** [12 August 2020 18:45 UTC](https://discourse.nodered.org/t/how-to-connect-two-uis/31495/1 "2020-08-12T18:45:09Z")

</div>

suppose i have two flow , flow 1 & flow 2 and in flow 1 i have a button and i want to call to call my flow 2 using this button. How can i connect my switch with flow 2 so that whenever this switch is pressed the flow 2 ui would get open?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [12 August 2020 19:29 UTC](https://discourse.nodered.org/t/how-to-connect-two-uis/31495/2 "2020-08-12T19:29:50Z")

</div>

Do you mean that when you click the button you want it to open a different tab in the dashboard? If so then look at the ui\_control node. You can make the first button send a message to the control node telling it to open the new tab.

---

<div class="post-metadata">

**Author:** ![makram](https://avatars.discourse-cdn.com/v4/letter/m/91b2a8/32.png) [@makram](https://discourse.nodered.org/u/makram)\
**Post date:** [20 August 2020 07:52 UTC](https://discourse.nodered.org/t/how-to-connect-two-uis/31495/3 "2020-08-20T07:52:39Z")

</div>

Thanks for the reply  
Can you please tell me how to configure the ui\_control node.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [20 August 2020 08:16 UTC](https://discourse.nodered.org/t/how-to-connect-two-uis/31495/4 "2020-08-20T08:16:11Z")

</div>

> [@makram](#):
>
> Can you please tell me how to configure the ui\_control node.

Did you look at the help text for the node? In particular it says  
" The default function is to change the currently displayed tab. `msg.payload` should either be an object of the form `{"tab":"my_tab_name"}` , or just be the **tab name** or **numeric index** (from 0) of the tab or link to be displayed."  
So if you put the name of the dashboard tab you want to open, or the index number of the tab, in msg.payload and send it to the control node then it should switch to that tab. To do that from a button set the text the button sends to the name (or number) of the tab you want it to show.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [19 October 2020 08:16 UTC](https://discourse.nodered.org/t/how-to-connect-two-uis/31495/5 "2020-10-19T08:16:17Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
