AnsweredAssumed Answered

Executing a script from within JavaScript within WebDirect

Question asked by jaylkjr on Aug 20, 2017
Latest reply on Oct 11, 2017 by theOtter

I have been using Google Places for address auto-complete and it's been working quite well.

However, when the JS runs in WebDirect, the link simply attempts to open FileMaker.

var runScript = "fmp://$/Flex?script=iXX_[JS]_ReceiveGoogleAddress_NewComp&param=" + company + '|'+ address + '| '+  phone + '| '+ webSite + '| '  ;

     window.location = runScript;

 

I was thinking perhaps hitting the WebDirect server as follows, but I think I am doing something wrong...

   var runScript = "https://fbd.swizznet.com/fmi/webd/Flex?script=iXX_[JS]_ReceiveGoogleAddress_NewComp&param=" + company + '|'+ address + '| '+  phone + '| '+ webSite + '| '  ;

 

Is there a method that works for calling a local script WITHIN WebDirect that will work?

 

Thanks in advance!

Outcomes