2 of 2 people found this helpful
It seems you're on the right track. I would use a Merge field to insert the field contents in a text box. You then make that text box and the layout part that contains it as large as you think it will ever need to be. The "trick" is you then go into Inspector > Position and set that object to Slide up and Also resize enclosing part.
In the above figure, the Display_Staff field is a list with name and title that can be anywhere from one to five people. So I've left enough room in the text box to expand for the list. However, if there are fewer than five everything slides up and you don't have a blank area at the bottom.
It does seem like you'll want to use a different layout for each. However, if it is simply a matter of using different fields, once you have it working for one you just duplicate the layout and change the appropriate fields. You then handle navigation to the correct layout in your scripting.
Hope this helps.
Thank you, Craig!
1 of 1 people found this helpful
Unless you are combining data from a field with either layout text or data from other fields such that it flows into a single block of text, you don't need a merge field. It works, but you don't need to just to get variable sizing. A regular edit box field can also be set to slide up and resize the enclosing part just as you can slide/resize a text object that includes merge fields or variables.