Is there any error capture for the ability to run a script on insert? I've got the new record working, but I can't seem to get a script running, and there is no error reporting for this.
I've got a script that sends out emails based on the data in the form.
Thanks,
Nick
Comments
Comment #1
flamingvan commentedOne thing to keep in mind is that in FM only certain script steps are compatible with web publishing. Can you confirm that you are only using these types of script steps? There is a checkbox in the FM script editor that shows which scripts are compatible.
This could be an issue with the module, though. I haven't tested scripts in the latest beta versions so I will take a look at it.
Comment #2
nickorr commentedYes, this is a web compatible script, and will run when triggered via other means.
Cheers,
Nick
Comment #3
flamingvan commentedHi nickorr,
I just installed a fresh copy of the latest webform module and the latest filemakerform module and I was able to successfully run a script. The script was very simple and only set some text in a field in a new record that was being created.
Have you been able to successfully run any scripts through the module? It sounds like you are just having trouble with the script itself and you are looking for a helpful error code. Filemaker only provides a couple of error codes related to scripts:
5. Command is invalid (for example, a Set Field script step does not have a calculation specified)
104. Script is missing
When I changed my script name I did get a successful error code 104 in watchdog. To be honest, I'm not sure how I would even trigger an error code 5.
Sorry I can't be more helpful here. If you want to send a copy of your script I guess I could test it for you.
Comment #4
nickorr commentedJust a followup to this, it turns out to be a permissions issue, so it's solved. The module is now up and working well on my site.
Thanks,
Nick
Comment #5
flamingvan commentedOk thanks for letting me know.