Jump to content

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

Recommended Posts

Posted

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

Posted

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 ;-)

Posted

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

Posted

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

This topic is 8590 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.