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.

field not empty

Featured Replies

I wish to create a button that will automatically paste text (previously copied into the clipboard) into a field but which prompts me with an error message if the field in not empty ie so that I dont over write anything! Other wise if the file is empty then it will paste automatically

thanks

If you don't want to allow a paste if the field contains data:

If [ not IsEmpty(field) ]

Halt Script

End If

Paste[No Style; field ]

If you want to give the option to overwrite:

If [ not IsEmpty(field) ]

Show Custom Dialog( "Overwrite"; "Cancel"; "Field contains data. Replace with clipboard contents?" ]

If [ Get(LastMessageChoice) = 2 ]

Halt Script

End If

End If

Paste [select; No style; field ]

Paste can be problematic however. It's better to use Set Field [] or even script parameters. Otherwise, a User may find themselves pasting all kinds of junk into this field even if it's empty (like things previously copied onto clipboard from another app). You haven't said enough for me to describe how script parameter could be used and I am unsure when your copy process happens.

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.