# Worldmap - define buttons in one message

**URL:** https://discourse.nodered.org/t/worldmap-define-buttons-in-one-message/63017
**Category:** General
**Created:** [24 May 2022 17:25 UTC](https://discourse.nodered.org/t/worldmap-define-buttons-in-one-message/63017 "2022-05-24T17:25:36Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![mickym2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mickym2/32/36128_2.png) [@mickym2](https://discourse.nodered.org/u/mickym2)
#### Post date: [24 May 2022 17:25 UTC](https://discourse.nodered.org/t/worldmap-define-buttons-in-one-message/63017/1 "2022-05-24T17:25:36Z")

</div>

Is it possible to define more than one button in a command or message. An array of button definitions seems not to work.

```auto
`{
    "command": {
        "button": {
            "name": "Home",
            "icon": "fa-home",
            "position": "topright"
        }
    }
}`

```

If you send two different messages with 2 commands it works - but I want to define/initalize my buttons with one message.

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/1/e1652521bf92820c421853c50e3e01999ce32924.png)

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [25 May 2022 08:05 UTC](https://discourse.nodered.org/t/worldmap-define-buttons-in-one-message/63017/2 "2022-05-25T08:05:45Z")

</div>

Correct - right now you have to send them one at a time.

---

<div class="post-metadata">

### Author: ![mickym2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mickym2/32/36128_2.png) [@mickym2](https://discourse.nodered.org/u/mickym2)
#### Post date: [25 May 2022 08:50 UTC](https://discourse.nodered.org/t/worldmap-define-buttons-in-one-message/63017/3 "2022-05-25T08:50:36Z")

</div>

Ok. Thanks for confirmation..

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [25 May 2022 21:27 UTC](https://discourse.nodered.org/t/worldmap-define-buttons-in-one-message/63017/4 "2022-05-25T21:27:53Z")

</div>

Will look at this if/when I get 5 mins

---

<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: [24 July 2022 21:28 UTC](https://discourse.nodered.org/t/worldmap-define-buttons-in-one-message/63017/5 "2022-07-24T21:28:19Z")

</div>

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