You are viewing limited content. For full access, please sign in.

Question

Question

Manually trigger lookup rule

asked on November 17, 2020

I am populating a text box on page load. There is a lookup rule based on the text field. The lookup rule is not firing on page load in forms 10.4.5. How do I trigger lookup rule to fire in javascript manually?

0 0

Replies

replied on November 17, 2020

You might try to trigger a change event on the field and see if the Lookup Rule triggers at that point

 

It would be something like:

$("#q999 input").trigger("change");

 

1 0
replied on November 17, 2020

Triggering the change event like Blake says should do the trick.

I've just made a habit of always triggering a change when I populate values via JavaScript because so many things depend on that event (lookups, validation, etc.).

$('#Field1').val('test').change();
0 0
replied on February 2, 2024

any tips on how to do this in the new designer with javascript rather than jQuery?
Thanks!

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.