AnsweredAssumed Answered

How can I prevent FMP url scripts from overlapping/disappearing?

Question asked by carlo.m on Nov 22, 2013
Latest reply on Nov 30, 2013 by carlo.m

I've got a webviewer in a solution. In the webviewer I have javascript that runs several functions. Given some user interaction, with FMP URLs scripts can be triggered. I'm using the window.location=FMP:// method to call the script.

 

I came accross an issue. There is a javascript function that has a couple of IF statements, if true it triggers a script via FMP URL. Only the second one goes through to Filemaker.

 

After a lot of testing, I was able to infer that the first call to FMP didn't go through, or didn't have enough time.

 

How can I fix this? I've thought that maybe running a setTimeout would work, but I'm hoping there is a better way so I don't have to waste a user's time everytime they click a button.

Outcomes