# Get input from dashboard-form and set IP address in http get

**URL:** <https://discourse.nodered.org/t/get-input-from-dashboard-form-and-set-ip-address-in-http-get/67488>\
**Category:** Dashboard\
**Tags:** http-request\
**Created:** [8 September 2022 15:44 UTC](https://discourse.nodered.org/t/get-input-from-dashboard-form-and-set-ip-address-in-http-get/67488 "2022-09-08T15:44:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![SuperKing](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/superking/32/67509_2.png) [@SuperKing](https://discourse.nodered.org/u/SuperKing)\
**Post date:** [8 September 2022 15:44 UTC](https://discourse.nodered.org/t/get-input-from-dashboard-form-and-set-ip-address-in-http-get/67488/1 "2022-09-08T15:44:28Z")

</div>

Wondering if someone can help me here.  
Total Noob to Node-Red  
I'm working on a personal project to capture data from a URL.  
I'm trying to work out some basic functionality issues.

I have a Dashboard form that requests the IP or hostname from the user.  
Upon submit use the input in the http get node.  
I've added the specific payload to the URL which I thought would work, but I'm only getting errors as the URL node does not seem to be taking my user input.

> http://{{msg.payload.ipaddress}}/player/dataset/tables/DMP%2FSystem%2FCounters.html

```auto
[{"id":"0103d988b4b02dad","type":"ui_form","z":"145c6760850289d3","name":"","label":"","group":"d36ccebfce37562c","order":2,"width":0,"height":0,"options":[{"label":"IP Address or Hostname","value":"ipaddress","type":"text","required":true,"rows":null}],"formValue":{"ipaddress":""},"payload":"","submit":"submit","cancel":"cancel","topic":"topic","topicType":"msg","splitLayout":"","className":"","x":130,"y":60,"wires":[["d7b6d9f7d07e6296","556c3d29e8bc0282"]]},{"id":"d36ccebfce37562c","type":"ui_group","name":"Default","tab":"fe6af6882003ac69","order":1,"disp":true,"width":"6","collapse":false,"className":""},{"id":"fe6af6882003ac69","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]

```

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [8 September 2022 15:50 UTC](https://discourse.nodered.org/t/get-input-from-dashboard-form-and-set-ip-address-in-http-get/67488/2 "2022-09-08T15:50:09Z")

</div>

~~Try triple brackets~~  
[edit] remove the msg.

```auto
http://{{payload.ipaddress}}/player/dataset/tables/DMP%2FSystem%2FCounters.html

```

~~as the mustache template is probably escaping speacial characters~~

---

<div class="post-metadata">

**Author:** ![SuperKing](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/superking/32/67509_2.png) [@SuperKing](https://discourse.nodered.org/u/SuperKing)\
**Post date:** [8 September 2022 18:31 UTC](https://discourse.nodered.org/t/get-input-from-dashboard-form-and-set-ip-address-in-http-get/67488/3 "2022-09-08T18:31:04Z")

</div>

No dice. Same error msg.

> TypeError: Invalid URL

---

<div class="post-metadata">

**Author:** ![SuperKing](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/superking/32/67509_2.png) [@SuperKing](https://discourse.nodered.org/u/SuperKing)\
**Post date:** [8 September 2022 18:32 UTC](https://discourse.nodered.org/t/get-input-from-dashboard-form-and-set-ip-address-in-http-get/67488/4 "2022-09-08T18:32:54Z")

</div>

For fun, I've removed the URL and replaced with http://{{msg.payload.ipaddress}} or http://{{{msg.payload.ipaddress}}}  
Same error.

I've set the hostname to [google.com](http://google.com)  
My output box on the dashboard is showing correctly.

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [8 September 2022 18:44 UTC](https://discourse.nodered.org/t/get-input-from-dashboard-form-and-set-ip-address-in-http-get/67488/5 "2022-09-08T18:44:02Z")

</div>

Your post dissappeared so i could not say the problem is the `msg.` in the `{{msg.payload.ipaddress}}`  
Remove the `msg.`. I updated the post above to correct syntax

---

<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:** [8 October 2022 18:44 UTC](https://discourse.nodered.org/t/get-input-from-dashboard-form-and-set-ip-address-in-http-get/67488/6 "2022-10-08T18:44:05Z")

</div>

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