# Can you create a dropdown selection on embedded views?

**URL:** <https://forum.inductiveautomation.com/t/can-you-create-a-dropdown-selection-on-embedded-views/95728>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [September 9, 2024, 1:22pm UTC](https://forum.inductiveautomation.com/t/can-you-create-a-dropdown-selection-on-embedded-views/95728 "2024-09-09T13:22:10Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steve\_Laubach](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/steve_laubach/32/60900_2.png) [@Steve\_Laubach](https://forum.inductiveautomation.com/u/Steve_Laubach)\
**Post date:** [September 9, 2024, 1:22pm UTC](https://forum.inductiveautomation.com/t/can-you-create-a-dropdown-selection-on-embedded-views/95728/1 "2024-09-09T13:22:10Z")

</div>

I'm working on a reusable template that takes 2 integers as parameters. Currently they are magic numbers and only numbers 0-3 are meaningful to the template.

I would like to add a parameter drop down to the template so that people can embed the view and click a drop down to select a valid option from a list when passing parameters in the designer.

I don't think that's currently a feature but I figured I'd ask here because someone here will know if that's possible.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [September 9, 2024, 2:19pm UTC](https://forum.inductiveautomation.com/t/can-you-create-a-dropdown-selection-on-embedded-views/95728/2 "2024-09-09T14:19:15Z")

</div>

Two thoughs:

1. Add a "config fault" label to the view with visibility determined by expression binding on the parameters.
2. Have a look at the Dashboard component. See how they make the widgets configurable by the end user. Could you do something similar for a designer?

---

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [September 9, 2024, 2:50pm UTC](https://forum.inductiveautomation.com/t/can-you-create-a-dropdown-selection-on-embedded-views/95728/3 "2024-09-09T14:50:55Z")

</div>

I know this has been suggested in the feedback for IA, but for now I would just use a couple BOOLs instead of an integer parameter. Or use an "error overlay" that's hidden when the parameter is 0-3 and shown when it's not (something like "invalid \<_parameter_\> value")

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [September 9, 2024, 2:59pm UTC](https://forum.inductiveautomation.com/t/can-you-create-a-dropdown-selection-on-embedded-views/95728/4 "2024-09-09T14:59:16Z")

</div>

Do you plan on adding numbers ?  
And what do they represent ?

---

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [September 9, 2024, 3:00pm UTC](https://forum.inductiveautomation.com/t/can-you-create-a-dropdown-selection-on-embedded-views/95728/5 "2024-09-09T15:00:06Z")

</div>

good point. he did say that they are _currently_ magic numbers

---

<div class="post-metadata">

**Author:** ![Steve\_Laubach](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/steve_laubach/32/60900_2.png) [@Steve\_Laubach](https://forum.inductiveautomation.com/u/Steve_Laubach)\
**Post date:** [September 9, 2024, 3:31pm UTC](https://forum.inductiveautomation.com/t/can-you-create-a-dropdown-selection-on-embedded-views/95728/6 "2024-09-09T15:31:34Z")

</div>

Currently using magic numbers.

It's a CSS-based pipe model. The numbers represent the pipe's end style.

0 - open  
1 - connecting to a pipe or tank  
2 - elbow up  
3 - elbow down

I'd like to have a dropdown on the color too. If I can do it on the pipe ends I can do it on the color.

I'd like to be able to click a dropdown on the parameters going into the template to pick "none, connect, up, down" or something like that.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [September 9, 2024, 4:46pm UTC](https://forum.inductiveautomation.com/t/can-you-create-a-dropdown-selection-on-embedded-views/95728/7 "2024-09-09T16:46:42Z")

</div>

Someday 🙁

> [@\[IGN-1537\]Perspective Component param tooltips](https://forum.inductiveautomation.com/t/ign-1537-perspective-component-param-tooltips/53226/3):
>
> We have a feature in the backlog to allow defining your own schema for view parameters, such that you could do all the things we can do in props - define enums, define ‘suggestions’, define tooltips, etc.

---

<div class="post-metadata">

**Author:** ![Steve\_Laubach](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/steve_laubach/32/60900_2.png) [@Steve\_Laubach](https://forum.inductiveautomation.com/u/Steve_Laubach)\
**Post date:** [September 9, 2024, 5:54pm UTC](https://forum.inductiveautomation.com/t/can-you-create-a-dropdown-selection-on-embedded-views/95728/8 "2024-09-09T17:54:10Z")

</div>

I'm happy to see it's in the pipeline.

Still the best SCADA product I've worked in by far.
