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.

Showing Search Values in a field on results page

Featured Replies

Hi,

I have a search page with 5 different criterias (one of them is a popup).

On the results page, I want to show these values in Text Fields (& 1 popup field). However, the SetCookie, -Token (beyond -Token.0) don't take up the values, and the FMP-FindFieldItem does not let me specify the value into fields so that the user can modify the search.

Any suggestions will be greatly appreciated.

Regards

Partha crazy.gif" border="0

Will this work for you?

< INPUT type="text" name="email" size="35" value="[FMP-Field: email]">

Just cut the spaces after <

  • Author

Had tried that. What that gives me is the values of that specific field(s) from the first record of the current found set, instead of what I typed in for searching.

e.g., if I search for "pep" in the brand field, it returns Pepsi on the Search Results page as that is the value of the brand field in the first record that my search criteria found.

quote:

Originally posted by Partha Dasgupta:

Had tried that. What that gives me is the values of that specific field(s) from the first record of the current found set, instead of what I typed in for searching.


Did you specify error layout? If the search is unsuccessful you will end up on first record. Is that the case?

  • Author

Yes, my error page is the same as my search page, where I show an error on top of the search form with an If statement.

The search is going through, and showing me the records in the range I asked for on the Search Results page.

However, it shows me data from the first record if I use the search parameter fields.

When I use FMP-FindValueItem, it shows the right information. Unfortunately this is not in the fields, so I can't save the search parameters, or help the user search again on a variation of the same parameters.

Just my wild guess, maybe you can carry the original search list through JavaScript variables.

Just regaring the error page: in my experience (mainly FMP4) if the error page is returned, Web Companion does not return ther first record, it returns NONE. Not even global field values are accessible.

  • Author

Is there someway that I can save the search values to another file, and then point the search from there with the saved values to the file with the master values? crazy.gif" border="0

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.