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 would like to have my next/prev icons grey out accordingly when I am at the beginning or the end of a found set.

I have solved the beginning but how do I tell when I am at the last record?

[FMP-If: CurrentRecordNumber .eq. 1 ] 'icon' [/FMP-If]

Syntax example(s)

Returns the total number of records in the found set using an HTML file

Record(s) in found set: [FMP-CurrentFoundCount]

<!-- After processing it could look like:

Record(s) in found set: 12

-->

grab it as a variable (JS)

set varCurrent= [FMP-Current FoundCount]

[FMP-If: CurrentRecordNumber .eq. 'varCurrent' ] 'iconLAST' [/FMP-If]

I have not tried it but just as a thought....maybe...maybe not smile.gif

good luck!

Hi, first the obvious:

If you use:

[FMP-LINKPREVIOUS]

Previous Results

[/FMP-LINKPREVIOUS]

and

[FMP-LINKNEXT]

Next Results

[/FMP-LINKNEXT]

...the links just disappear when there are no more to go to.

so I guess we just have to add an "if" to replace it, like:

[FMP-LINKNEXT]

Next Results

[/FMP-LINKNEXT]

[FMP-IF: currentfoundcount.eq.{FMP-RANGEEND}]

<FONT COLOR="#666666">Next Results</FONT>

[/FMP-IF]

and

[FMP-LINKPREVIOUS]

Previous Results

[/FMP-LINKNEXT]

[FMP-IF: rangestart.eq.1]

<FONT COLOR="#666666">Previous Results</FONT>

[/FMP-IF]

......and the "if" bit will replace the link bit

[FMP-RANGSTART] and [FMP-RANGEEND] are the numbers of the first and last record being shown on the page

regards, jeff

...er, I havn't tried this yet smirk.gif

Hi, sorry - I spoke too soon here! Just sticking "{FMP-RANGEEND}" in the "IF" doesn't work. I know the syntax to add a field as the second value is "field:fieldname" but I havn't worked out what it is to display a that variable.

I'll work on this and get back to you

aplologies, Jeff

Now there's a true FMP philanthropist dedicated to his craft! You , go, Jeff!

--ST

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.