Board Thread:Support Requests - Getting Technical/@comment-24531999-20160403193123/@comment-17725354-20160504012345

Again, apologies for the late response. The problem with the script is that when the click method is called, the AJAX request is not yet finished. AJAX is asychronous and does not prevent other code from executing, whether above or below it. I would not recommend m aking it synchronous because this slows everything down and can freeze up the browser.

Instead, another solution would be to add parameters to  that would take the number of the input (1 or 2), get the level, and get the property you want to use. (Do not use a parameter called  as it is already used in the script.) Where I commented "Add code here that will execute after AJAX request has finished and data has been added to lookupResult object," code could be added that would append the data to the specified input from the property and level.

For example: Let me know if you want me to work on the above solution or if you would like to do it yourself.

I may make a few adjustments to the script so that it only performs an AJAX request once per page rather than needing to for every change.