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

Currently I'm working to create a script that will help me navigate from my default page to other layouts with certain conditions.

So I've created a field where I calculated the number of records sorted by a category (type)

My goal here is to have a script with the following conditions:

- If only one stamp is found, show in detail view

- If more than one stamp is found, show in list view

- If there are no stamps for that type, alert the user and stay on Dashboard layout

so currently i have something along the lines of : the screen shot attached.

Suggestions on how to proceed? Do I need to set variables here?

edit: sorry move go to related record so that it's placed ontop of end if

post-107452-0-67653300-1352325615_thumb.

  • 2 weeks later...

"So I've created a field where I calculated the number of records sorted by a category (type)"

Way wrong, I'm afraid. :-)

After you perform your find, count the number of records returned and act accordingly similar to:

... Your find here and then continue with this pseudo-script ...

Set Error Capture [ On ]

Perform Find []

If [ not Get ( FoundCount ) ] ... no records found

Show Custom Dialog [ "No records found" ]

Go to layout [ original layout ]

Else If [ Get ( FoundCount ) = 1 ]

Go To Layout [ form view ]

Else

Go To Layout [ list view ]

End If

Halt Script

 

Hi LaRetta, I do not understand why you placed that step. Is it really needed ?

You are right it isn't. I changed it partway through and it is difficult typing on iPad. I have corrected it.

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.