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.

Customizing results pages based on Search Value List Input

Featured Replies

  • Newbies

I am a CDML newbie and I would like it if someone can help me or point me in the right direction regarding the following:

I have a search page. On it is a search that includes a pre-determined FM value list. I know how to get the user to a search_results page after the search regardles of what search value they choose, but how would get the user to a results page that is customised to the value they searched for?

Any help is greatly appreciated!!!

Christine

It depends on what you like to achieve.

One simple way is to build IF condition in page and show/hide what is necessary.

Another way is to switch to another pages after IF evaluation.

Maybe also Inline can display another result.

If I have understood this correctly, you could create a script that takes the user to a different layout depending on the choice made in the value list.

Then, create a script that includes the following steps :

Enter Find Mode [pause]

Perform Find

If["Color = black")

Go to Layout [Layout#1]

EndIf

If["Color = blue"]

Go to Layout [Layout#2]

EndIf

Enter Browse Mode

Of course, you could add as many If steps as you need.

Sorry,

Possibly, my reply is not very clear.

What I meant to say was this : first create the different layouts where you want the users to land. Then, create the find and open layout script.

Something like that.

Just remember, you have two programming languages at your fingertips:

CDML and JavaScript.

You can have one HTML page and then the IFs are controlling what will be shown and what not.

Or you can redirect via JavaScript on conditions.

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.