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.

How can I control the location and size of a field on a layout with a script?

Featured Replies

Is there a way to control the location and size of a field on a layout in a script?

I would prefer not to use a plug in, but I am open to it if it will get the job done.

I have 8.5 adv.

Thanks

Edited by Guest

Then what exactly is the use for a functions such as:

GetLayoutObjectAttribute("MyField","bounds")

? ? ?

This free tutorial MAY have your answer:

http://www.filemakermagazine.com/modules.php?op=modload&name=News&file=article&sid=625&mode=thread&order=0&thold=0

Look at the online help for GetLayoutObjectAttribute and you'll see there's more to it than just the position and size of the object: container data type; URL of the web viewer; which object has focus; etc.

The size/position info doesn't seem quite so useful. I can imagine possibly testing for the position and width of a given object and then resizing the window based on that.

AFAIK scripts don't work at all in layout mode, they will always put you back in Browse by default, or Find or Preview if the script specifies that. Since moving objects around requires Layout mode, this would be a big departure for scripting. I don't think we'll see this ability any time soon.

The size and location of a field cannot be controlled dynamically.

The GetLayoutObjectAttribute() function is a way of finding out where a layout object is, its size etc. Not for controlling the object.

Create an account or sign in to comment

Important Information

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

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.