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.

Script with a Search Variable

Featured Replies

  • Newbies

Guys, I've tried to look everywhere but I can't find the information I need. I need a script that performs a series of action. In the middle of the script I would like to have a dialog box that allows the person to insert some text. After that based on that text I need the script to perform a search in the database. Hope to be able to explain the problem...

thank you for your help!

Hi and welcome to FMForums. :-)

To accept User input you need a field. Create global text field called gSearch then pseudo-script would be:

... do your actions

Set Field [ gSearch ; "" ]

Show Custom Dialog [ OK ; cancel ; ... On input tab, specify using the global by selecting it and include label. ]

If [ Get ( LastMessageChoice ) = 2 // User selected cancel ]

... do whatever you wish if search is cancelled

Else

# User wants to continue

Enter Find Mode [ uncheck pause ]

Set Field [ youFieldToSearch ; gSearch ]

Set Error Capture [ On]

Perform find[]

If [ not Get ( FoundCount ) ]

Show custom dialog [ "no records found" ]

... do whatever

Else

... Records found so do whatever

End if

End if

This is difficult to fully view on the iPad, LOL, so it is a bit rough. :-)

.

  • Author
  • Newbies

Wow thank you LaRetta! It works! So kind :)

Antonio

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.