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.

FMP-If - Confused and bewildered (again)

Featured Replies

  • Newbies

Here I am again, getting closer to finishing this project, but again stuck on if statements.

I'm confused about FMP-If statements. What are the required tags needed and where does the If and else statement go? (I'm using Homepage and the filemaker_forml.hlb).

I want to compare a number that has been entered into a global field with a indexed field from another database.

I'm hoping something like this will work

[FMP-IF: streg: tongue.gifassword .cn. gPassword] Show this link [/FMP-If]

I've searched the web and found lots of info about FMP-If, but very few examples of the actual code and where it needs to be placed.

If anyone can help, I would be most appreciatative.

T. Miller

This example colors the table data cell (<TD>) red if the contents of the "Wire6" field is "No 5MD1 !":

[FMP-IF: field: Wire6 .eq. No 5MD1 !]

<TD ALIGN=CENTER BGCOLOR="RED">

[FMP-Else]

<TD ALIGN=CENTER BGCOLOR="#AFEEEE">

[/FMP-IF]

The following allows you to use one CDML page as a detail record page for edit, duplicate, and delete.

Simply put the code for each section withing the tags...

[FMP-If:currentaction.eq.edit] <!-- Edit -->

[/FMP-If] <!-- Edit -->

[FMP-If:currentaction.eq.find] <!-- find -->

[/FMP-If] <!-- find -->

[FMP-If:currentaction.eq.delete] <!-- delete -->

[/FMP-If] <!-- delete -->

[FMP-If:currentaction.eq.new] <!-- New -->

[/FMP-If] <!-- New -->

[FMP-If:currentaction.eq.dup] <!-- Duplicate -->

[/FMP-If] <!-- Duplicate -->

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.