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

Question

Question

onURLParameterPreFill event available?

asked on November 13, 2020 Show version history

I'm looking for a way to trigger a change event on a form field once it's prefilled via query params. Is there a jquery or laserfiche specific event that can be used to run a callback on completion of URL params pre-fill? 

0 0

Replies

replied on November 13, 2020
0 0
replied on November 13, 2020

Thanks Paul for the resource link, however that's not quite the information I was looking for. I'm aware of how to trigger an onChange event. What I'm looking for is something similar to lasersfiche's lookupcomplete event which can be used to run a function when a specific lookup rule has completed, but instead of lookup rules I'm interested on pre-filling of fields from query parameters.  

For example when a routing number is pre-filled I'd like to automatically trigger an api call to fetch some data about the associated bank. When I try to simply trigger a change event it will not actually pick up the prefilled data, but when I wrap it in a setTimeout it will work as expected. My suspicion is that the prefilling is occurring after the 

$(document).ready()

I hope that help clarify my question.

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

Sign in to reply to this post.