Skip to main content
13-Aquamarine
Mar 7, 2024 11:39 PM UTC
Question

Mashup - Focus textbox on toggle selection

I want to focus on the textbox when we select (ON) the toggle widget

3 replies

16-Pearl
Mar 8, 2024 1:13 PM UTC

Hello @Vipul_Oswal 

 

As I can check previously it could be done by using jquery but now that option might not work and you have to create a custom widget to do so. i am sharing some of the community post with same query which might help you further

https://community.ptc.com/t5/ThingWorx-Developers/Force-focus-to-a-textbox/m-p/501394#M271%3Fsource=search

https://community.ptc.com/t5/ThingWorx-Developers/Set-focus-on-textbox/m-p/691861#M48341%3Fsource=search

 

thanks

Translate
17-Peridot
Mar 9, 2024 12:34 AM UTC

when you are clicking toggle,

  • Do you want just focus/highlight the border of text box? Or
  • Do you want to make curser inside the text box ?
Translate
13-Aquamarine
Mar 9, 2024 12:41 AM UTC

Cursor in the text box.

I have a toggle button. On Click of it, I want to show the text box and have focus inside the textbox. Check the video

Translate