# Set Text Focus On Perspective module

**URL:** <https://forum.inductiveautomation.com/t/set-text-focus-on-perspective-module/58789>\
**Category:** Ignition\
**Tags:** ignition81, scripting, perspective\
**Created:** [April 25, 2022, 3:37am UTC](https://forum.inductiveautomation.com/t/set-text-focus-on-perspective-module/58789 "2022-04-25T03:37:49Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [April 25, 2022, 1:08pm UTC](https://forum.inductiveautomation.com/t/set-text-focus-on-perspective-module/58789/4 "2022-04-25T13:08:28Z")

</div>

You could ‘css hack’ it:  
Create a new style, call it `highlight-text`, then in one its field (for example the background image), paste this: `}.psc-highlight-text::first-line { background-color: blue;}{` (replace blue by whatever color you need/want)  
Now, add the `highlight-text` class to your input field on your button’s `actionPerformed` event script to enable the effect, and remove it + delete the text when you get your new data.

edit:  
You can also put that css bit, without the first and last brackets, in a custom theme file. You’ll still need to create the style class. Make sure the names match, with the `psc-` prefix in your css selector.

---

_[View the full topic](https://forum.inductiveautomation.com/t/set-text-focus-on-perspective-module/58789)._
