Fields in FileMaker--both merge and regular, cannot grow only shrink.
But if you correctly set the sliding objects and all objects in the same part located along side or beneath them to also slide up and to "resize enclosing part", you should not get a bunch of blank pages.
The only case where you might see a limited ability to "grow" is for merge fields that are part of the same text block.
In layout mode, select the text tool and draw a rectangle on your layout. With the cursor inside this new text object, use the Insert menu to insert two merge fields into this single text block. You can press the return key to put the second field on the line below the first.
Now, both in browse mode and in preview/print mode the two fields will grow and shrink with in the limits of the text box rectangle that you drew on the layout. The combined contents of these two fields won't be able to expand past the limits of the text object.
You can then set the text object to slide up and to resize the enclosing part to eliminate unused space when printing, previewing or saving as PDF.
Key facts about sliding layout objects:
- It's only visible in preview mode and when you print/save as PDF...
- Sliding fields will shrink but not expand.
- All layout objects below and in the same layout part as the slide/resize field need to also be set to slide up and resize.
- Objects in headers and footers will not slide.
- Portals will shrink/slide to fit the number of rows of records, but fields within the portal row will not shrink/slide.
- Fields will slide up only if Top alignment is specified for it and will slide left only if Left alignment is specified.
- Consistent side borders are difficult to achieve with sliding fields.
I've done my best to follow your instructions, but I'm getting a blank page between every "real" page when I preview the results. It's as if the fact that there's a second page on the layout view means that there's one in preview as well.
It would be nice if the layout could look good in Browse mode as well as Preview and as a PDF. Am I wishing for the moon here?
Resize enclosing part is the setting that should remove that blank page, but you have to be careful to set this on every object on your layout for which its position may change due to sliding so this can be a simple case of not setting this on a single object--even a horizontal line drawn below the last sliding object has to have this setting.
Also, you'll get a new blank line if the resulting body (after everything has slide up and resized) is even one pixel more than will fit in the printable area of your printed page. Look for any blank space below the lowest objects on your layout and see if removing it, by dragging the boundary between footer and body (or the bottom edge of the layout if you don't have a part below the body), up as far as it will go changes the results that you get.
As far as I can see all the objects that are set to slide are also set to resize their enclosing parts. There's a blank page between every real page regardless of how short the text is or whether there's any images or not.
I'm wondering if the sidebar is a problem. The layout has a section on the side containing information that doesn't move - the two text fields and the image fields are set to slide up based on objects immediately above them, so I was hoping it would ignore the stuff in the side bar, but perhaps not.
You'll need to describe that "side bar". A screen shot of your layout taken while the layout is in layout mode could help with that. I am assuming from your description that the fields are correctly sliding but that empty space remains at the bottom of the page.
As far as I can see all the objects that are set to slide are also set to resize their enclosing parts.
But are all the objects below your sliding objects and that are still part of the body layout part also set to slide/resize?
And are your container fields actually sliding for you? They usually do not slide up at first due to a default setting of a "center vertical alignment". And unlike other fields, this setting has to be changed in the Data format section at the bottom of the Data tab in the Inspector instead of on the Appearance tab.
I changed the alignment of the container fields, but it hasn't helped.
I've attached a screen shot of the top half of the layout - it's too tall to include in a single screen grab, even reduced to 75% size - and will post the bottom half in another posting.
The sidebar is made up of several text fields, all set to slide up as required - this bit does seem to be working in terms of moving things about.
Hope this makes sense...
Bottom half of the layout:
It Looks like you will get at least a two page per record result even if all fields were empty. Is the "side bar" set to slide or is it always the same size?
Click on the boundary between the Body and the footer and drag it up to be as close as possible to the bottom row of fields.
Do you still get the extra pages?
The grey check boxes in the inspector indicate that not all selected objects are set to slide or resize.
BTW, an easy way to see what objects are set to slide is to select View | Show | Sliding Objects while in layout mode.
It was that extra space above the footer boundary that did it - kinda obvious I guess...
Anyway, many thanks, again, for the help.