# Cursor position in text field

**URL:** <https://forum.inductiveautomation.com/t/cursor-position-in-text-field/56980>\
**Category:** Ignition\
**Created:** [March 8, 2022, 8:00pm UTC](https://forum.inductiveautomation.com/t/cursor-position-in-text-field/56980 "2022-03-08T20:00:21Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [August 2, 2023, 9:07am UTC](https://forum.inductiveautomation.com/t/cursor-position-in-text-field/56980/8 "2023-08-02T09:07:53Z")

</div>

if you still need it, found something

> [@Get Cursor position in Text Area Component](https://forum.inductiveautomation.com/t/get-cursor-position-in-text-area-component/77268/2):
>
> you'll need to put a domId on your textfield #make the propName the key to write too in the view.custom propName = "selectedIndex" code = """\<img style='display:none' src='/favicon.ico' onload=\" const view = [...window.\_\_client.page.views.\_data.values()].find(view =\> view.value.mountPath == this.parentNode.parentNode.parentNode.getAttributeNode('data-component-path').value.split('.')[0]).value; const table = document.getElementById('"""+value+"""'); function getSelected(){ c…

---

_[View the full topic](https://forum.inductiveautomation.com/t/cursor-position-in-text-field/56980)._
