# Perspective Text Field Numeric Keypad

**URL:** <https://forum.inductiveautomation.com/t/perspective-text-field-numeric-keypad/71229>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [March 17, 2023, 1:59pm UTC](https://forum.inductiveautomation.com/t/perspective-text-field-numeric-keypad/71229 "2023-03-17T13:59:21Z")\
**Posts on this page:** 1\
**Showing post:** 41

<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:** [March 23, 2024, 10:47am UTC](https://forum.inductiveautomation.com/t/perspective-text-field-numeric-keypad/71229/41 "2024-03-23T10:47:12Z")

</div>

The flex repeater passes in a "secret" **index** parameter. The index number is the array number.  
 ![Repeater index](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/3/9311f06f08db8f4781f6cd41adabf9cc654b8da1.png)  
_Figure 1. The instance index._

On the repeated view add the `index` parameter. I've set it to -1 so I know if it is the test value or the real index value.

![Subview index](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/3/835390cbfd62fdb793d18868ebe5b461d3d1d284.png)  
_Figure 2. Add the index parameter on the subview._

Now,

1. Pass the index parameter to your keypad popup.
2. Include the index number in the keypad sendMessage.
3. On the subview message handler check the index number.

 ![Message handler index](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/f/7f79b77d429ad50184b197962462893b25a5e8c6.png)

_Figure 3. The subview message handler._

I might not have the scope set correctly in Figure 3.

It's in the manual but would be hard to find if you didn't know what to look for. [Perspective - Flex Repeater | Ignition User Manual](https://docs.inductiveautomation.com/docs/8.1/appendix/components/perspective-components/perspective-embedding-palette/perspective-flex-repeater#description)

Tip 😜:  
Message: ![email](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/f/af2279c094d8d248f059ab861a54c1cfe3b3637f.png) Massage: ![Massage.jpg](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/f/6f209fa66f662ab81feff6406af176b9c968762e.png)

---

_[View the full topic](https://forum.inductiveautomation.com/t/perspective-text-field-numeric-keypad/71229)._
