Skip to main content
1-Visitor
March 9, 2021
Question

Focus on autocomplete widget on button click without using mouse click

  • March 9, 2021
  • 1 reply
  • 1021 views

Hi Team,

 

Suppose I have a search button and I want after on click of that button an autocomplete widget gets visible and more importantly the cursor gets focused immediately so that any one can enter alphabets in autocomplete widget without using mouse left click. 

Please help with the logic if it is possible. (TWX version 9.1)

Thanks in advance

1 reply

16-Pearl
March 11, 2021

Hi Ranjank

 

Attachment <Entities.xml> is a sample mashup&thing to get an autocomplete widget visible after on click of a button. 

However, I am afraid your request of getting the autocomplete widget focused is currently unsupported with TW standard functions per below article. In case you don't have a PTC account to view the article, I also attached the PDF file.

https://www.ptc.com/en/support/article/CS314721

 

So back to your auto focus request, a possible solution is to develop your own extension widget with ThingWorx Visual SDK which utilize Google Polymer. Please check below links for more details.

https://support.ptc.com/help/thingworx/platform/r9/en/#page/ThingWorx%2FHelp%2FMashup_Builder%2FWidgets%2FVisualSDKDocumentation.html%23

http://support.ptc.com/help/thingworx_hc/visual_sdk/