Skip to main content
Inspiring
November 19, 2021
Question

InDesign, controlling layer visibility

  • November 19, 2021
  • 6 replies
  • 1366 views

I'm doing a Data Merge and based on the contents of a data placed in a text box I want to turn off/on certain layers?

 

Is this possibily?

 

Thanks in advanced

This topic has been closed for replies.

6 replies

Dave Creamer of IDEAS
Community Expert
Community Expert
November 29, 2021

May want to check out a third-party plugin such as DesignMerge.

David Creamer: Community Expert (ACI and ACE 1995-2023)
Willi Adelberger
Community Expert
Community Expert
November 19, 2021

I think turning on and of layers based on an item in a single record would be dangerous. It will not affect the selected item, but the whole document and you get surely unwanted results.

No, it is not possible.

brian_p_dts
Community Expert
Community Expert
November 19, 2021

You're right, turning off layers is probably not the right approach. But you can certainly toggle visibility on distinct page items and/or remove page items on other layers per page based on a page's contents. Never say never; just about anything can be done via automation. It's just about finding the right solution to the problem. 

Inspiring
November 30, 2021

IMHO the best way (price/time/result) is:

Classic datamerge and then use this script:

https://corullon.com.br/scripts/product/apply-objstyle-by-search/

Example:

Find (dog|cat|rat) 

And apply object style with zero transparency on every text frame that contents dog, cat or rat. 

jctremblay
Community Expert
Community Expert
November 19, 2021

Not possible directly...

One workaround is to export to PDF each of the Layer separately, than add them in the database to place them in a frame in your document. Easy, fast!

brian_p_dts
Community Expert
Community Expert
November 19, 2021

Yes, the solution is to name the placeholder frames on the DataMerge template and then execute a script on the merged document. However, toggling layers based on each record's contents likely will not achieve the desired result. You'd need to toggle visibility of individual page items on each page, I'm thinking. 

Community Expert
November 19, 2021

No, I don't think that is possible. This would require some scripting, we could either create a script that compliments the native data merge functionality or design a custom data merge based on how much custom control is needed for the workflow

-Manan

-Manan
ajabon grinsmith
Community Expert
Community Expert
November 19, 2021

This is not possible with just the data merging feature.
It is recommended to use scripts together.