Skip 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.

Help with FMP-IncludeField

Featured Replies

If I perform a search using the -RecID tag the FMP-IncludeField works:

http://xx.xx.xx.xx/FMPro?-db=Answers.fp5&-Lay=Web&-format=surveystep1.html&-Op=eq&-Error=surveyerror.html&-RecID=34934&-find...

Web page includes FMP-IncludeField that pulls the the contents of a field [fmp-include:surveystep1D3.txt]. This displays the correct .txt file.

But if I replace -RecID with a specific field, for example, one called "CurrentID," FMP-IncludeField does not work properly:

http://xx.xx.xx.xx/FMPro?-db=Answers.fp5&-Lay=Web&-format=surveystep1.html&-Op=eq&-Error=surveyerror.html&CurrentID=32978&-find

The FMP-IncludeFiled is actually finding data from the first record in the database, not the one matching CurrentID=32978 from the above -find, thus displaying the wrong .txt file. I cant get the tag FMP-IncludeField to display the information from the correct record.

It has me stumped.

Larry

Larry,

I have a feeling that FMP-IncludeField was discontinued with FM5.5.

I've just done a quick search of the FM Site and can not find anything on it.

Good Luck.

Garry

Whoops, look like that was "-fmtfield" that was removed.

Is this the database that you had the other problem with the data from the wrong record being returned? If so where you able to "remake" the indexes? This can be done by "exporting" the database to a new one.

All the best.

Garry

  • Author

Same problem. But I think it might be more of a problem with the FMP-IncludeField tag than my search results in the database.

The fact that if I search using -RecID and it works, and if I search instead doing a -find for specific field contents instead of -RecID and it keeps jumping to the first record...

Leads me to believe that maybe the FMP-IncludeField is meant to work with a Global field.

Anyone know if this is the case?

LR

  • Author

Is there a different way to accomplish this...

[FMP-Include: page1.html]

Works just fine if the tag is hard coded just like above. But what if I want the .html page to come from a field in the database?

[FMP-Include: [FMP-field: myfield]]

Of course I know the above format is not correct, but I put it that way so get the idea across.

I have tried:

[FMP-Include: {FMP-field: myfield}]

I have tried...

[FMP-IncludeField: myfield]

[FMP-Include: page1.html] is the contents of myfield

But when I try to do a -find the [FMP-IncludeField does not seem to work properly because it wants to only work properly with a global field.

Any thoughts?

LR

Try:

[FMP-Include: {field: myfield}]

Remove the "FMP-" from within the intra-tags.

Good Luck.

Garry

  • Author

Thanks for the help. I will give it a try.

LR

Larry, there is a demo in the sample files forum which uses the includefield to serve images. I posted it there many moons ago. Serving images on the web or some such subject line. If I recall (allowing for a senior moment) it necessitated the use of a calc field.

HTH

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.