Skip to main content
christinee52948910
Participant
October 21, 2022
Question

Interactive button that copies an image to another page when clicked

  • October 21, 2022
  • 2 replies
  • 249 views

I’m very curious if this would be possible in InDesign and how to go about it (this is for a publish online document).

 

I’m creating an interior decor book for a client. I currently have separate pages for each category of things that need to be purchased (chair, cushions, rug, etc). Each page contains pictures of different options for them to choose from. Underneath each image is an interactive button to "select" an item so I know the particular one they want to go with.

 

I had the idea of adding a "mood board" page at the end of the book, which will contain a collage of all the things they’ve selected, so we can see how everything goes together. And I was wondering if it’s possible to add a secondary action to the "select" button whereby clicking on it adds a copy of the relevant image to the mood board page.

 

Essentially I would create a final page with a bunch of rectangle placeholder frames arranged in a collage. Since I have 20 categories of items, there would be 20 frames in this final page. When the client selects something from a category, the image that was selected is then copied over to a specific placeholder frame. The idea is that the client would go through the book and select the item they like best from each category, then at the end, the mood board would showcase a collage of all their chosen items.

This topic has been closed for replies.

2 replies

Robert at ID-Tasker
Legend
October 21, 2022

It can't be done in InDesign - you can't include JavaScript when exporting PDF - but it could be done in Acrobat as post-processing - by injecting finall PDF with JavaScript to handle it - I have done something similar for catalogue orders were customer can click on checkboxes and at the end there is a text field with codes for the custom order - will try to include example later today.

 

Found it on my phone 🙂 for some reason it doesn't work on my phone - limited version of PDF viewer?? but will work on the desktop - full version of Acrobat Reader is enough. 

Loic.Aigon
Legend
October 21, 2022

I would be curious how this could be achieved. The analysis of both the InDesign UI and the DOM objects doesn't seem to offer any ways to tackle your project (button options only allow limited actions for publishing online). I thought that maybe you could use state objects and play with visibility. However, it seems to only work when the state object can be found on the same page where the button resides and obviously it would quite cumbersome to multiply hundreds of objects on the last page just in case they would be picked.

I hope I am wrong.

Loic