Trying to build an ADD records page using some calculated fields, but striking out...
I have a "LOGID" unique value field for records, I need to pull the lowest value record and decrease the number by one as the number to insert in the field when I add the record ...Going to the visual editor, I choose Lookup wizard, List of values and try to enter php code into the box of the Default value box...., I assume it should be min(LOGID), but I can't figure how to get it into my Default value box, i tried : [codebox]min(@$avalues["LOGID"])-1[/codebox]
but I get a PHP error on the page as follows: Undefined variable: avalues.
Any suggestions welcome, as to the correct way to pull up that value and decrease it by one.
Dean Meyers