Jump to content

CDML -script tag

This topic is 8729 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I have seen that FileMaker does not pack the CDML Reference folder in FMP 5.0+. Dang unfortunate for those who are just getting involved. I got lucky and am using 4.0v3.

<p><form action="FMPro" method="post">

<input type="hidden" name="-db" value="The_Tracker.fp3">

<!--leave no spaces in your db name, and FMP 5.0 may require ... .fp5-->

<input type="hidden" name="-lay" value="layout name">

<!--if only 1 layout this is not necessary-->

<input type="hidden" name="-script" value="Tape Number">

<!--names the script-->

<input type="hidden" name="-format" value="success.htm">

<!--successful action-->

<input type="hidden" name="-error" value="error.htm">

<!--not required if no errors will occur-->

<input type="submit" name="-action" value="button name"></form></p>

<!--describes the action to be taken and put a name on the button-->

Basically, when one desires to perform a -script, the form action or link requires the -script tag, the -db tag, and any -action tag, the rest is optional to meet your needs


Keith M. Davie

Link to comment
Share on other sites

I need a script to run on the browser. CDML's

"-script" tag is supposed to do the trick, but I don't know how to make it work. I've also tried to make a link activate the script but can't get that to work either. I'm using FMP 5.0 and HomePage. The script(in the database) generates a number when attached to a button. The script is called "Tape Number" and the db is called "The Tracker"

Any help is greatly appreciated.

Rock on,


Link to comment
Share on other sites

  • 4 weeks later...

Can a calculation field generate the number instead? That way the value can be entered using an autoenter (or a hidden field in a web form) and you can avoid the use of scripts completely.

Link to comment
Share on other sites

  • 2 weeks later...

I have just re-read your original post. You state that you "need a script to run on the browser."

The -Script CDML tag will make a script perform itself on the *server* but you cannot make a script run itself on the browser. scripts on run within the FileMaker Pro program itself, not in web browsers.

Forgive me if I am barking up the wrong tree...

Link to comment
Share on other sites

This topic is 8729 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.