Mustache template can only display info from one object in payload

Not sure what your issue is as html created with mustache displays fine in my browser

p.s. The forum provides a way of sharing flow json, it is preferred if you use this method.

In order to make code readable and usable it is necessary to surround your code with three backticks (also known as a left quote or backquote ```)

``` 
   code goes here 
```

You can edit and correct your post by clicking the pencil :pencil2: icon.

See this post for more details - How to share code or flow json

Also most will not have access to your data base so it is helpful if you provide a sample of the sql responses for testing, Use debug nodes to get this data in the correct format

There’s a great page in the docs (Working with messages : Node-RED) that will explain how to use the debug panel to find the right path/value for any data item.

Pay particular attention to the part about the buttons that appear under your mouse pointer when you over hover a debug message property in the sidebar.

BX00Cy7yHi

[edit]
Your issues is that the keywords and feeds are in payload and there is a seperate msg.keywords. Set your debug to see complate message object.

the template should be

<select class="form-control" id="urlname" name="urlname">
                        {{#payload.feeds}}
                        <option value="{{name}}">{{name}}</option>
                        {{/payload.feeds}}
                    </select>
                    <label for="urlname2">URL Name2</label>
                    <select class="form-control" id="urlname2" name="urlname2">
                        {{#payload.keywords}}
                        <option value="{{expression}}">{{expression}}</option>
                        {{/payload.keywords}}
                    </select>
1 Like