# Parameter Type not the same after passing to popup

**URL:** <https://forum.inductiveautomation.com/t/parameter-type-not-the-same-after-passing-to-popup/25057>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [May 16, 2019, 12:42pm UTC](https://forum.inductiveautomation.com/t/parameter-type-not-the-same-after-passing-to-popup/25057 "2019-05-16T12:42:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![grietveld](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/grietveld/32/6984_2.png) [@grietveld](https://forum.inductiveautomation.com/u/grietveld)\
**Post date:** [May 16, 2019, 12:42pm UTC](https://forum.inductiveautomation.com/t/parameter-type-not-the-same-after-passing-to-popup/25057/1 "2019-05-16T12:42:30Z")

</div>

I ran into a bit of an issue passing a boolean parameter to a pop up view. When it is passed, the value is converted to a string and so the bindings in the popup didn’t respond. I was able to fix it with a map binding, but is there a better route to address this?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/0/0906169ba007c040c934f0eec616158d99b02556.png)

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [May 16, 2019, 2:45pm UTC](https://forum.inductiveautomation.com/t/parameter-type-not-the-same-after-passing-to-popup/25057/2 "2019-05-16T14:45:23Z")

</div>

That’s not something you should even need to address - `false` in a property should always be `false`, and not `"false"` (outside of a containing String like “this false is false.”). I’ll try to replicate this behavior.

---

<div class="post-metadata">

**Author:** ![grietveld](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/grietveld/32/6984_2.png) [@grietveld](https://forum.inductiveautomation.com/u/grietveld)\
**Post date:** [May 16, 2019, 2:47pm UTC](https://forum.inductiveautomation.com/t/parameter-type-not-the-same-after-passing-to-popup/25057/3 "2019-05-16T14:47:40Z")

</div>

> [@cmallonee](#):
>
> That’s not something you should even need to address - `false` in a property should always be `false` , and not `"false"` (outside of a containing String like “this false is false.”). I’ll try to replicate this behavior.

For reference here is how my button is configured. newRecipe is the param in question.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/7/74e38367230b3e711823dc47de148f2d2c7aa58c.png)

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [May 16, 2019, 2:48pm UTC](https://forum.inductiveautomation.com/t/parameter-type-not-the-same-after-passing-to-popup/25057/4 "2019-05-16T14:48:31Z")

</div>

Oh, okay. That’s because you’re supplying a String value in that Value field. It’s a Text Field, so any value supplied there is a String.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [May 16, 2019, 2:51pm UTC](https://forum.inductiveautomation.com/t/parameter-type-not-the-same-after-passing-to-popup/25057/5 "2019-05-16T14:51:33Z")

</div>

If you want a boolean supplied through that newRecipe property, then you need to bind to a boolean property`{root/prop_path/property_which_is_boolean}`. Supplying the value as you’ve done means you do need to expect the String value like you’ve done.

My original assertion that you shouldn’t need to do anything was based on a bad assumption that you were passing a Perspective property, when you’re actually supplying a String parameter value.

---

<div class="post-metadata">

**Author:** ![grietveld](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/grietveld/32/6984_2.png) [@grietveld](https://forum.inductiveautomation.com/u/grietveld)\
**Post date:** [May 16, 2019, 2:55pm UTC](https://forum.inductiveautomation.com/t/parameter-type-not-the-same-after-passing-to-popup/25057/6 "2019-05-16T14:55:36Z")

</div>

Ok thanks. I may switch it to a script instead of using the popup action. Or just leave my transform on for now since it’s a demo and keep this in mind for future uses.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [May 16, 2019, 2:59pm UTC](https://forum.inductiveautomation.com/t/parameter-type-not-the-same-after-passing-to-popup/25057/7 "2019-05-16T14:59:58Z")

</div>

For what it’s worth, I highly recommend using the scripting API for all Perspective Actions you would take. The GUI Actions are nice to see what the available options are, but scripts give you far more flexibility and handling.
