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.

Empty Container Field Replace with text?

Featured Replies

Hi

I would like to make a script which would allow me to insert text into a container field for a container field when there is an empty container field. I would like a script to go to each record and determine if the container is empty and if so replace it with text.

Is this doable.

Thanks

STan.

Version: v6.x

Platform: Mac OS X Panther

No.

Instead, create a calc field ContainerMessage, case(isEmpty(container, "This field is empty"). Format not to allow entry, make it transparent, and put it over the top of the container.

Hi Stan,

It is possible, however the text will have to be in vector graphic form (and therefore not directly editable) in order to be stored in the container.

How I suggest that you go about it is:

1. Go into layout mode, select the text tool and type the text that you want to place into the empty containers.

2. Create a global container field called 'gVectorText', then copy the text from layout mode, go to browse mode and paste it into the gVectorText field.

3 Create a script along the following lines:

Show All Records

Go to Record/Request/Page [First]

Loop

If ["IsEmpty(YourContainerField)"]

Set Field ["YourContainerField", "gVectorText"]

End If

Go to Record/Request/Page [Exit after last, Next]

End Loop

Your default text will then appear in all of the container fields which were previously empty, but existing container field contents will not be disturbed.

If you want any new records to start out with the text appearing in the container field, you'd need to set an auto-entry calc to reference the gVectorText field, on your container field. cool.gif

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.