Skip to main content
n_cyan
Participant
February 2, 2018
Question

Change background color automatically

  • February 2, 2018
  • 5 replies
  • 1819 views

I am searching for an opportunity to change the background color of a textfield automatically in a document with data merge. Is there a possibility to define it in the Excel file or can I work with object format. What can I do to get a good solution? Many thanks 😉

    This topic has been closed for replies.

    5 replies

    vinny38
    Legend
    February 2, 2018

    Hi

    I'm not quite sure I understand what you mean by "textfield" nor what you want to achieve?

    n_cyan
    n_cyanAuthor
    Participant
    February 2, 2018

    Hi ;-)
    I mean the first one.This is what I am searching for. How can I define this?
    Many many thanks

    vinny38
    Legend
    February 2, 2018

    Here's the trick...

    First I created AI files with single colored rectangles (they can be very small). Then saved them as blue.ai, green.ai, red.ai and so on...

    In your Excel file, add a new column. At the beginning of this data field name, add a @ character. Indesign will now recognize this as an image field. (see Merge data to create form letters, envelopes, or mailing labels in Adobe InDesign for more information on this process).

    Then add the paths to the right image in the following cells.

    You should end up with something like this:

    In Indesign, choose Content Placement Options from the Data Merge panel menu and select Fit Images To Frames.

    Finally, all you have to do is to create two frames: one text frame for your text data fields and one graphic frame to place your background image. Adjust, place graphic frame behind and you're good...