Jump to content

Conditional color based on image choice


steppy

Recommended Posts

I'm trying to write a rule that will assign specific values to variables based on the choice of another. Input and assistance here will be appreciated!

 

I have three variables:

 

1. "ColorScheme" - the design name for the combination of background and text

2. "Background" - a pdf image

3. "TextColor" - Pantone colors

 

Based on the choice of a color scheme I need to assign:

 

 

1. a background image

 

and

 

2. specific colors to SOME of the text within a variable

 

 

Any guidance to get this done most effectively would be great.

 

This will end up on MCC.

 

thanks

 

stephen

 

 

FP 9.3.15

Acrobat 10.1.14

Mac OS 10.6.8 (yeah I know)

Link to comment
Share on other sites

I have three variables:

 

1. "ColorScheme" - the design name for the combination of background and text

2. "Background" - a pdf image

3. "TextColor" - Pantone colors

 

Based on the choice of a color scheme I need to assign:

 

 

1. a background image

You need a graphic rule like so:

return CreateResource(Field("Background"));

2. specific colors to SOME of the text within a variable

You need a text rule like so:

return '<color name="' + Field("TextColor") + '">';

Or depending on exactly what you mean by "SOME of the text within a variable," you need to include that "SOME" in the rule, something like:

return '<color name="' + Field("TextColor") + '">' + "SOME TEXT" + '</color>';

Link to comment
Share on other sites

  • 1 month later...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...