September 12, 200124 yr Newbies How on earth do access the data in a -max field. ordinarily it is formname.fieldname.value="5" however search.-max.value="5" doesn't work. Thanks in advance. Ric
September 12, 200124 yr What it does Specifies the maximum number of records that should be returned per page. Value is A number from 1 thru 2147483647, or the word "All". The default value is 25. Syntax example(s) Specify the maximum number of records using a link <a href="FMPro?-DB=Contacts&-Format=format.html&-Max=10&-FindAll">First 10 Records</a> Specify the maximum number of records using a form action < form action="FMPro" method="post"> <input type="hidden" name="-DB" value="contacts.fp5"> <input type="hidden" name="-Format" value="format.html"> <input type="hidden" name="-Max" value="10"> <input type="submit" name="-FindAll" value="First 10 Records"> </form> I've put space after the <
September 13, 200124 yr Just to make the fact explicit: the -max tag has nothing to do with Javascript or Java, it's CDML. Have you downloaded the CDML Reference database from the FileMaker web site? They're all in there.
September 13, 200124 yr The "-" in "-max" may be causing the problem, so try: document.formname.elements[x].value = 5 "x" is the xth <input> element; they start counting at 0. This should work. All the best. Garry
September 13, 200124 yr Author Newbies Thanks garrycl I will try that, I was hoping not to do it that awy because if I extend the form it will change. Any how, at least it will work!!!
September 19, 200124 yr the javascript syntax for referencing a field with an irregular name (such as a name with a space or a hyphen) looks like this: search["-max"].value [ September 19, 2001: Message edited by: bman ]
Create an account or sign in to comment