cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Focus on autocomplete widget on button click without using mouse click

ranjank
14-Alexandrite

Focus on autocomplete widget on button click without using mouse click

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 1
wcui
14-Alexandrite
(To:ranjank)

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/

Top Tags