steppy Posted November 23, 2015 Share Posted November 23, 2015 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) Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted November 23, 2015 Share Posted November 23, 2015 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>'; Quote Link to comment Share on other sites More sharing options...
steppy Posted January 12, 2016 Author Share Posted January 12, 2016 Appreciate your reply. Your help got me going on the right track. Belated thanks! stephen 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.