Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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

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

  • 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

No restriction. However, check that it is on your 'layout'.

All the best.

Garry

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

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.