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.

Need Help on Token to pass search criteria.

Featured Replies

When a user initially arrives at this site, they do a search (often a find all). I need to save that search so that I can return them to it after singling out one record.

I am trying to set a token to that value, but when I display the token (Token: [FMP-CurrentToken]), nothing shows up.

I tried setting it to [FMP-Current Find], [FMP-Link] in an input field, nothing.

Do I need Form tags around an input statement?

How do I do this? Do I set the token in the first search page, or in the search results page?

Thanks,

Ken

Yes, you need a Form, or Link. Here's an example.

<form action="FMPro" method="post">

<input type="Hidden" name="-db" value="WebDisplay.fp5">

<input type="Hidden" name="-error" value="[FMP-Link]">

<input type="Hidden" name="-format" value="edittime.htm">

<input type="hidden" name="-RecID" value="[FMP-CurrentRecID]">

<input type="hidden" name="-lay" value="DataEntry" >

<input type="Hidden" name="-token.0" value="[FMP-Field: SchDate]">

<input type="Hidden" name="-token.1" value="[FMP-Link]">

<input type="submit" name="-find" value="Edit" class="sm">

</form>

  • Author

Will a token value display if you simply insert the code [FMP-CurrentToken] on an HTML page?

In the above example, will the entire search represented here be stored in the Token.1 value, or would it be the link that got you to this page?

Thanks,

Ken

Well...

Will it display?

What have you tried?

Well, will the entire search be stored in the token?

What have you tried?

  • Author

I got nothing!! That's why I asked the question . . . what SHOULD I get?

"...they do a search..."

Instead of asking you, "What have you tried?", perhaps I should have inquired, "What is the code of your search format file and what is the code of your results format file?".

I did not ask your understanding of the setting of a token, perhaps I should have asked that as well.

So, what have you tried? laugh.gif

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.