Skip 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.

Scripting for User input

Featured Replies

  • Newbies

I want to do something pretty simple, and I am sure incredibly common: get FM to request input from the user, then use their answer to do a search.

I've created a script that uses Show Custom Dialog. That requests the input OK, but how do I access the answer? Where does FM put it? What do I put in the Perform Find step?

Specifically:

Show Custom dialog ["Number"; "Type a number"; Main Data::Num]

If [Get (LastMessage) = 1]

Perform Find [Restore]

....

In Perform Find [Restore] the formula is Main Data::Num:[="Type No."] where "Type No." is label given to input field #1 in Show Custom Dialog definition.

Am I missing something here. Do you have to create a field to hold the temporary parameter? Surely it is not that complicated.

Is there a way to edit scripts like in a text editor rather than selecting form pre-defined lists? It is very tedious.

See the input field options? Yes, you have to store the result in a field. Yes, it's ridiculous. Generally you'd want to use a global field. Also be aware that the input field will only be recognized when the default button is clicked. Yep.

No, you can't edit scripts in a text editor. Well... you sort of can:

Clip Manager

FmPro Script Diff

Edited by Guest
Welcome to the forums!

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

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.