Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
Hi,
is it possible in ThingWorx 8.5.x and 9 to force focus on a specific element (like a textbox) in a mashup during runtime? I've seen solutions in older posts with jQuery which are no longer working.
Is there any way to achive this in newer Thingworx versions?
Solved! Go to Solution.
Hello @DanZ,
You need to develop a custom widget where you place manually the focus to an element.
You can follow example at developer portal or at the Help Center page section Creating Customized ThingWorx Widgets
Hi @DanZ.
Can you point out the older posts that you're referring to? This will help us gain a better understanding of your requirement.
Regards.
--Sharon
Certainly. The accepted solution in this case isn't working anymore: https://community.ptc.com/t5/ThingWorx-Developers/Force-focus-to-a-textbox/td-p/501391
I simply want to set focus to an element (like a textbox) after an event (i.e. ButtonClicked) is triggered.
EDIT: There are even cases where it is mentioned that jQuery isn't working anymore for this use case.
https://www.ptc.com/en/support/article/CS314721
https://www.ptc.com/en/support/article/CS304107
Is there any alternative?
Hello @DanZ,
You need to develop a custom widget where you place manually the focus to an element.
You can follow example at developer portal or at the Help Center page section Creating Customized ThingWorx Widgets
Do you mean a customized textbox widget that have the function to force focus on itself? Or a separate widget that could set focus on any arbitrary element in the mashup?
I'm asking because I'm not sure if the second option is even possible.