Josh Posted July 15, 2019 Share Posted July 15, 2019 Hello All, I am trying to figure out how to setup my document to handle a type of variable image stacking that is based on true and false values in an attached data file. The image area can contain 1 - 3 images, from a pool of 6. Most of the time they are vertically stacked, center aligned on the vertical axis, and the combination changes for each record in the data. My only thought is to build a table with JS and make the rows the variable part based on an IF statement, but I haven't had luck pushing an image into a table. I have attached some images to show how the are setup, the data behind them and the results. All of this is with a different software and I am really wanting to bring this all together in FP. I very much appreciate any help possible. Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted July 15, 2019 Share Posted July 15, 2019 Can you post what you have so far? Ideally the template, or at least some sample data and images to work with? Quote Link to comment Share on other sites More sharing options...
ScottHillock Posted July 15, 2019 Share Posted July 15, 2019 Can you just create a text frame and fill with graphic images? var images = []; for (i = 1; i <= 6; i++){ if (Field("XSell" + i)){ images.push('<graphic file="./XSell' + i + '.pdf">'); } } return images.join('<br>'); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.