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.

SetField Script

Featured Replies

  • Newbies

I recently moved from FileMaker Pro v5.5 to v9 when I got a new iMac and OS 10.5.

In my dB's I had a SetField script that I used after I pasted text into fields from various sources, and the script would set the formatting of that text to whatever the field format was, rather than the formatting of the pasted text.

In v9, the script doesn't do anything and I can't find anything in the Help file on the SetField function.

This was the content of my script:

Set Field (database::Field,database::Field)

I had one line in the script for each field that I wanted the script to set.

How do I accomplish this in v9?

In version 7 and above, Set Field[] works with styled text, so setting a field to itself no longer removes the styling. Either one of the following should do it:

Set Field [ Table::Field ; TextFormatRemove ( Table::Field ) ]

Set Field [ Table::Field ; SerialIncrement ( Table::Field ; 0 ) ]

Set Field [ Table::Field ; Evaluate ( Quote ( Table::Field ) ) ]

Undo/Redo [ Undo ]

# if called immediately after paste

You can also remove the styling manually, either by holding the Option key while pasting, or by selecting Undo immediately after pasting.

Edited by Guest
added more

  • Author
  • Newbies

Worked fine, Many thanks

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.