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.

Click Container Field to insert file script...

Featured Replies

Greetings,

So I have multiple Container Fields and I want to create a script that can be used on those multiple Container Fields instead of creating each script for each Container Field. I have a simple working "Insert PDF script" below:

 

Go to Object [Object Name: "Container1"]

Insert PDF []

 

But of course the problem is that if I have 20 Container fields I will have to write each script for each Container field. Not to mention the Delete PDF Script.

 

So I tried the Set Trigger Script on Object Enter and it works fine when I click the Container Field I am able to insert a PDF but the problem is that the script will run regardless of the Container field is Empty or Not Empty and I only want it to run only if the Container field is empty.

 

How Can I accomplish this?

31 minutes ago, emtau said:

I only want it to run only if the Container field is empty.

That's not possible - but you could branch your script using:

If [ IsEmpty ( Get (ActiveFieldContents ) ) ]
   # do something
Else
   # do something else
End If

However, the UI you're building is non-standard, and you might want to reconsider your entire approach. Especially since you say you might have 20 container fields. It sounds like you should have 20 related records instead, with a single container field each.

 

  • Author

Thank you Very much.

You right I might over exaggerate the number of Container Fields, but I'll take your point into consideration in the future.

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.