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.

Restore last query for next new search

Featured Replies

  • Newbies

I'm new to XML/XSLT. Does anyone know of a way to restore the last query for the next new search?

I’ve created a page called ‘products.xsl’ which contains 2 parts. The top part of it is a search engine: category (popup menu) and keywords (text field). The bottom part is a search result list. After the search, I want the last item that I selected from popup menu STAYED within the search result list instead of reset to default. Is there a way to do that? Any helps would be appreciated. Thanks!

Danny

Edited by Guest

Yes, there is a way.

You can use the $request-query variable to extract the part of your query that corresponds to your category and get the query value. Check the FMS7A CWP Guide for the correct XPath syntax.

Within the popup-menu, you compare each menu value to the query value. If they match, you can set the selected attribute in your menu option like this: menu entry. For this you need .

  • Author
  • Newbies

That helps me getting started. Thanks for the tips.

Danny :)

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.