June 27, 200223 yr Hi All, Maybe one of you can help me. I am trying to run a script on a web page that facilitates online registration for exams. Within FM, my script checks to see how many people are registered for a given date and time, and if there are more than 4 people for a given date and time, an error message is generated telling the user to select another date. However, I tried to use this script on the web, and nothing happens. If an error is being generated, how is the web user supposed to recieve the news? Here is the tag I'm using online: <input type="hidden" name="-script" value="CheckClassFull"> Here is the link to my page as well: https://filemaker.ccsu.edu/data/TLC/default.htm Just click on the "New Record" link to get to the page. I am using FM version 5.5. Thanks, Cristy
June 27, 200223 yr Newbies Hi, well.. normaly I trigger scripts like this <a href="FMPro.. &-Script=myScript&.."> (just an example ) works great.. you just have to look for writeing the exact name of the script.. that's all.. hope this helps you b.
June 27, 200223 yr Hi, your link is not working. ScriptMaker scripts can be "triggered" from a form action or a link action. However there are issues involved because ScriptMaker is single-threaded. Should it receive two near-simultaneous requests, the second requested event will fail to perform, yet your client will be taken to the success.htm. In and of itself CDML has no way of knowing that a ScriptMaker event failed to run. It is possible to run ScriptMaker on the web, I know, I do that at my site. Feel free to visit when you have the time.
June 28, 200223 yr In this instance you don't need a script at all to get the functionality. All you need to do is count the registrations (using a calculation field in the database) and use this value in a CDML [FMP-If] statement on yout format file do display the appropriate response. No scripts needed.
Create an account or sign in to comment