July 31, 200124 yr I have just upgraded to FM 5 from 4 using custom web pages and my IF ELSE statements are working and I can't seem to find the problem. I check a field to see if it contains a specific text value and if so I present the user with a defined URL to a different area. my code is as follows; <td align=LEFT valign=TOP width="41%"><font size="-1"> [FMP-If: field: idmFileExt .eq CT]<a href="ftp://*.*.*.*/archive/images/[FMP-field: idmFileName]">Download Image</a> [FMP-Else]<a href="ftp://*.*.*.*/archive/[FMP-Field: idmJobNo]">View Job Bag</a>[/FMP-If] </font></td> The reuslt on screen is a blank entry in the Table. What have I done wrong cheers
July 31, 200124 yr Looks like you skipped a period after the ".eq". These kind of missed periods are easily corrected and the consequences don't grow up to ask for the car ;-)
July 31, 200124 yr Author I have corrected the text but still know joy. Is there a restriction on the fields you can use? The idmFileExt is a calculation field created from three others. regards
August 1, 200124 yr I would also write it like this [FMP-If: idmFileExt.eq.CT] I would get rid of the field: and get rid of spaces in the eqs part. That should work. If not then as above make sure the field is on the layout. You can check for a layout problem by deleting the call to a layout in the request for the page. I do this so that i don't spend ages routing around filemaker to find if it is one layout or not. If you call from no layout then it should appear nomatter what kayout it is on. If it still doesn't appear at least you know it is not a layout problem Simon
August 2, 200124 yr You upgraded from 4 to 5. That may mean you changed your files from .fp3 to .fp5. Did you make this change on your format files?
Create an account or sign in to comment