Skip to main content
Nintex Community Menu Bar
Solved

Call Javascript on SmartObject List

  • March 21, 2018
  • 2 replies
  • 49 views
  • Translate

NigelStratton
Forum|alt.badge.img+5

I'm stumped on how to trigger or trap an event out of K2.

 

I have a view with a Google Map, the user types in a Lat and Long and I have some custom Javascript which traps the change event and moves a marker on the map to the desired location.

 

The user also has an Autocomplete on my location table. The autocomplete does a Transfer Data to set the same Lat and Long text boxes. The problem is updating a text box with a K2 rule (or any javascript update) doesn't trigger the change event. Is there a way to trigger a custom javascript event on a Transfer Data or similar rule?

 

I tried listening to ajaxComplete but got nothing.

Best answer by boringNerd1

Hi,


 


The only solution that I can think of for this is to manually trigger the javascript yourself after you executed the rule to transfer the data to your 2 text boxes.


 


You can follow the steps listed here to execute the javascript manually.

View original
Did this topic help you find an answer to your question?

2 replies

Forum|alt.badge.img+15
  • 498 replies
  • Answer
  • March 22, 2018

Hi,


 


The only solution that I can think of for this is to manually trigger the javascript yourself after you executed the rule to transfer the data to your 2 text boxes.


 


You can follow the steps listed here to execute the javascript manually.

Translate

NigelStratton
Forum|alt.badge.img+5

I did not know that injecting a script into a blank field (repeatedly) would run the script! Excellent.

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings