Change text colour based on text in another text box

I am playing around with data merge in CS6 to layour customised artwork and I'm stuck.
I have the data merge working no probs, bringing in the correct artwork and the names to go on the artwork. What I cannot seem to acheive is how to get the names to change colour based on the club field i have in my data set.
I have the following fields:
@design - brings in the artwork
name - bringing in the customers name to be printed on the artwork
club - brings in the club name
I presume I have to apply a paragraph style to the <<name>> field to get it to change colour, I cant work out how to use a GREP style to get it to change based on the <<club>> field though.
Any help would be much appricated or alternative ways to do this.
I have around 500 records to propcess on a weekly basis so being able to automate it would be a big help.

I think it can be done with GREP styles, though I'm very weak in GREP skills.
This this example has the club name before the player's name:
I burned out trying to recreate the successful example with the player name preceding the team name. I think it used a different lookaround method. Any suggestions are welcome.
One problem I'm stuck on is how to make the expression that captures the player's name work with one, two, three, or more names, like first, middle, last, esq., etc. Currently there needs to be the same number of word placeholders in the GREP expression as there are words in the player's name.
In this example, the bteam search fails. I moved it to another position in the GREP style dialog box, but no success. I created dteam to see if perhaps there was a limit to the number of searches. It succeeded when I deleted, then recreated, the bteam search.
HTH
Regards,
Peter
Peter Gold
KnowHow ProServices

Similar Messages

  • How can i change the colour of key words in long text fast ?

    Hi,
    I have long text (for example script) which should be displayed in TextArea (or something similar) with colored keywords.
    I tried with TextRange
    new TextRange (myTextArea, true, start_Index, stop_index)
    and with
    RichEditableText 
    var highlightFormat:TextLayoutFormat = new TextLayoutFormat();
    highlightFormat.color = 0xFF0000;
    for each (var currentKeyword:String in keyWords) {
    myRichEditableText.setFormatOfRange(highlightFormat, indexOfKeyword, indexOfKeyword + currentKeyword.length);
    Either ways are too slow, 30 sec....
    The indexes of words which should be colored are computed below a second but creating an object for every keyword is too expensive .
    Any Idea what should i do ?

    There are a couple of things you can do. Check out the PS Touch tutorial, "Replace colors," as one example.
    You can optionally use the other selection tools in lieu of the Magic Wand selection tool.
    Also, you can use the Paint Tool's effects options in conjunction with any of the selection tools. Many common effects and adjustments (like "Color Balance" in the PS Touch tutorial) are available by tapping the Mode option and choosing, "Effect," rather than, "Paint."

  • How do you auto-populate a text field based on entries in other text fields?

    I would like to be able to have a text field that populates as "Complete" or "Incomplete" based on whether all the mandatory text fields have been filled out or not.
    For example, if the "First Name," "Last Name," and "City" text fields are not filled out, the "completion status" text field will show "Incomplete" and once they are filled out, the "completion status" text field will turn into "Complete."
    How would I do this using javascript? I've searched the web for a tutorial, but most of the results seem to be dropdown-centric.
    Please point me in the right direction!

    Try the script below. I put this on the calculate event for Field1
    if(FirstName.rawValue == null || LastName.rawValue == null || City.rawValue == null){
    Field1.rawValue = "Incomplete"
    else
    Field1.rawValue = "Complete"

  • How to create conditional text? (based on selected option, different text displays)

    Hello, and thank you in advance for any assistance.
    I need to create a .pdf with conditional text.  Ideally, the user would select (via checkboxes) certain options, and only the text relevant to those selections would be included in the .pdf.  Is this possible in Acrobat?  If so, how?  If not, what tool accomplishes this?
    Many thanks.

    Sorry 'bout that ! I was responding from e-mail and as you can see it's not working quite right. This is what I had wrote;
    Tools ? What do you mean tools ? Adobe Acrobat is your tool. :-)
    If you don't know javascript then you should entertain learning some if
    you wish to "extend" Acrobat. That's the nature of the beast.
    You may find some precompiled javascripts; but if you want customization
    then you'll either have to pay someone to do it or yeah, learn javascript.
    Check out Acrobatusers.com they have an excellent Acrobat Javascript section.
    Best Regards,
    Steve
    Message was edited by: S.D.A.

  • Calculation Script to change a number based on quantity in another

    Hello - and thanks for the help - I have no real idea of what I am doing when it comes to writing script.  I would like the cost of something to change depending on the quantity ordered... ie. the more you buy the better price you get.
    (ie.  5 or less = $18.00, 6-10 = $17.00, 11+ = $16.00)
    How do I write a calc script to accomplish this?  Also, if the "Quantity" affecting the outcome is a result of a calculation itself will the code still work?
    I have uploaded a sample to the following:
    http://www.shupaca.com/Calc.html
    Thanks!

    Check the spelling of you field names with in your custom scripts.
    Some overall observations:
    Use the provided formats for fields unless you want to write your own format code,  validation code, or keystrokes code.
    Use the default value option to set default values of fields, so if the form is reset, the default value is restored. You can also access this value in code.
    Use the 'read only' parameter to lock field you do not want users of the form to update.
    Check the JavaScript console for errors. You misspelled the field name.
    Do not use a calculation event when another type of event can perform the same script,. Calculation order can become a problem. All field calculations are rerun when ever any field that is used in a calculation is updated, so by the end of your form you may have a significant amount recalculation of unnecessary calculations being performed.
    Setting the 'Scarf Cost' field to read only, default value of 18, and a 'Number' format with 2 decimal places and the "$" currency symbol and removing all scripts for this field, one could use the following "On Blur' action for the 'Scarf Quantity' field:
    var oPrice = this.getField('Scarf Cost');
    oPrice.value = oPrice.defaultValue;
    if (event.value > 5) {
    oPrice.value = 16;

  • Conditional Formatting - how to change cell colour based on cell value

    I am in the process of moving some Excel spreadsheets into Numbers on my iPad. The Excel spreadsheet had conditional formatting in certain cells. If the cell value was less than a certain amount (<46 for example), the cell background would automatically turn yellow.
    Is there any way to make Numbers on iPad do this?
    Thanks for any help you can provide.
    Scott

    I beleive this is one of those doable tings on desktop that gets taken out on ipad. If you would like to suggest this as an idea for apple to put in, please go to http://www.apple.com/feedback

  • Change the colour of message bubbles

    Is there a way that I can change the colour of my text bubbles. Or will they stay green.. Or is there a way I can customise the colours?

    There is no way to change the colour. If you message another using with an iOS device running iOS 5 or later and you are messaging them from an iOS device running iOS 5 or later it will be sent over Apple's iMessages network and the text bubbles will be blue.  Just thought I would share that.
    B-rock

  • Change default colours in quiz template

    Hi,
    I'm using the Flash quiz templates to make some quizzes.
    Can anyone tell me how to change the colour of the message
    text AFTER an option has been selected. I can change the colour of
    the 'Make a selection' text but once the selection has been made
    (ie the option box checked) the default blue is used for the
    correct answer text and the default red is used for the message
    text. I'd like to make them the same colour as the rest of the text
    I am using in the quiz.
    Thanks very much.

    Here's how to have your templates available in the "File New From Template" in Adobe Illustrator for Windows.
    What you need to have
    Administrator access to your machine.
    What you need to know
    The default directory for Adobe Illustrator templates is here (for CS5.1)
    C:\Program Files (x86)\Adobe\Adobe Illustrator CS5.1\Cool Extras\en_US\Templates
    The default Windows security doesn't allow shortcuts to be created directly under that directory.
    You can, however, create the shortcut indirectly!
    What you need to do
    In Summary
    Create one (or multiple) folder shortcut(s) in the default Illustrator template directory.
    In Detail
    Open Illustrator
    Select File -> New From Template
    Drop down the "Look in" drop-down, note the directory:C:\Program Files (x86)\Adobe\Adobe Illustrator CS5.1\Cool Extras\en_US\Templates
    Open a Windows Explorer, and navigate to that directory
    Open another Windows Explorer, and navigate to the directory where you keep your templates.
    Right-click-drag your folder from the second Explorer (your directory) to the first Explorer (default templates) and drop.
    Select "Create shortcut" from the right-click popup menu that appears when you "drop" (release the mouse button).
    Windows will display a message "Shortcut cannot be created here, do you want to create it on the desktop".
    Select Yes.
    Move the directory shortcut to the Illustrator to the first Explorer (default templates directory)
    Windows will ask for Administrator permissions.
    Select Yes.
    You can right-click on the template shortcut and rename it without the " - Shortcut" suffix; you'll have to grant Administrator permissions for that as well.
    After completing these steps, your template shortcut will appear properly and you can select it.  Happy designing!

  • Trying to fill a shape or change text colour-it is always grey instead of the colour I picked?

    I have been working on a file and whenever I have a couple of shapes and some text. When I try to change the fill of the shape or change the text colour it is always changing to grey. It will let me pick a colour, but the box at the bottom(foreground/background box) is always grey as well. Please help.

    THANK YOU SO MUCH BARBARA! I really appreciate you taking  the time to reply to my simple problem(eventhough at the time it was so frustrating). Thanks again. Leanne

  • Is it possible to change text colour in code view?

    Hi all,
    Not sure if this is possible as never seen it myself, but is it possible to change the text colour in the code of the html?
    A site I am building at the moment is for a school who want to be able to edit text / links occasionally, and as they will only be using something like notepad and have no html knowledge between them whatsoever, I thought if I could highlight bits in the code which are 'not to be played with' it would make everyone's job a lot simpler!
    Possible or not?

    cs6_noob wrote:
    Can the comments only go at the beginning of a line, or can they, for example go after say a <p> tag but before the page text? (If you get my meaning!)
    Eg <p><!--edit from here--!>welcome to our website<!--up to here--!></p>
    Yes, you can, but you need to make sure the HTML comment tags are correct. What you have done won't work, but this will:
    <p><!--edit from here-->welcome to our website<!--up to here--></p>
    Notice that the exclamation mark is only in the opening comment tag. Not in the closing one.
    Opening tag for comment:
    <!--
    Closing tag:
    -->

  • In ios7 is there a way to change the colour of a sent text?

    Since upgrading to ios7 & on my iphone 5 the sent text messages in a conversation (my messages) are white on green and I don't find it that easy to read when I want to look back over a conversation. I tried making it bold in the Accessibility area of settings but that it no better. Inverting colours gives me a horrible purple. \does any one know if there is anyway I can make the text other than white - black on green would be fine.

    Hello again, Helen,
    While this doesn't actually change the colour of the mouse pointer, Mouse Locator does make it very easy to spot, even on a large display.
    And it's freeware into the bargain!
    HTH
    Archie

  • Change the colour of text

    Dear expert,
    Can we change the text colour of work center description ( field name: STEXT)?
    Best Regard
    pauline

    Dear,
    Thanks for the feedback. how bout if I bold the text. Can we?
    I want to make the indicator for the work center that already inactive. maybe you guys have any idea about the indicator we can create so that other users know this work center is inactive without a must to open the detail.
    thanks
    Pauline

  • How do I change the colour of text in a cell in a JTable?

    I am trying to change the color of the text in a single cell in a JTable. I have tried not adding a cell renderer and it changes the colour of text in all cells.
    I have tried adding a cell renderer to the table and it does the same ie all cells text colour changes.
    I am able to add a cell renderer to a column and it changes all the cells in the column.
    I cannot figure out how to change just one single cell's text colour without effecting the other cells.

    Ok, so if i create my own cell renderer do I set it as the default renderer for the whole table i.e.
    table.setDefaultRenderer(MyCellRenderer, renderer);
    Does this set one cell renderer for the whole table or is there an individual one for each cell?

  • I can't change the colour of linked text?

    I have a black background on the side of my web page containing the menu bars which requires the link text to be white so it can be
    seen. I also have it set to change to yellow when you hover over it.
    The problem is that this setting seems universal throughout the website and I cannot get the links in general text (such as 'contact
    us' links, etc) on each page to change colour - they default to white which doesn't show up as the background is also white.
    i have tried creating a CSS rule for links in the body of a page but to no avail.
    Can I change the colour of links on different parts of the website?
    I am relatively new to dreamweaver with little knowledge of CSS, etc but I'm sure this must be possible.

    Yes it is possible to have differen coloured links..
    You need to look at Pseudo-classes / descendant selectors:
    http://www.thepattysite.com/linkstyles1.cfm
    http://www.projectseven.com/tutorials/pseudoclasses/index.htm
    Descendant selectors:
    http://www.projectseven.com/tutorials/css/pseudoclasses/page3.htm
    Nadia
    Adobe® Community Expert : Dreamweaver
    Unique CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    http://csstemplates.com.au/
    http://twitter.com/nadiap

  • How do I change the colour of a page in Pages without using a floating shape or text box?

    I want to change the colour of a page in Pages without having to stretch out a floating coloured shape or using a text box to write the text in. I have been stretching shapes and using text boxes for years but surely there is an simpler and more elegant way to do this? Plus, I want to be able to type several pages of continuous text and not have to split the text up into multiple text boxes. Any help most welcome.

    bigj wrote:
    I want to change the colour of a page in Pages without having to stretch out a floating coloured shape or using a text box to write the text in. I have been stretching shapes and using text boxes for years but surely there is an simpler and more elegant way to do this?
    There are a whole lot more really essential features missing in Pages than this.
    bigj wrote:
    Plus, I want to be able to type several pages of continuous text and not have to split the text up into multiple text boxes. Any help most welcome.
    What is stopping you?
    Peter

Maybe you are looking for

  • Firefox always in task manager - it doesn't always close the program since the new update

    Since I got the new Firefox 29.0.1 - when I want to reopen Firefox, I constantly have to go into the Task Manager and shut down the process before it will let me in. I haven't had any Windows updates nor updated/added any new software on my PC since

  • I cannot sign in to my icloud with my old account it is saying maximum number of free accounts

    i am not tring to recreate an icloud. my iphone had to be reset by ntelos and clear all my data off my phone. so now when i try to sign in to my icloud it will not let me sign in with my account that i used before my phone was reset. it is saying it

  • My Mail has no Preferences

    I'm using Mail 1.3.11 that came with my OS 10.3. Everytime I try to do something simple like add a Signature, Mail Help tells me to go to Mail/Preferences. Mail Help tells me I'm supposed to have tabs for General, Accounts, Junk Mail, Fonts & Colors,

  • Oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnectio.setPreemptiveBasicAuth(Z)V

    Hi Guys, I am trying to integrate the Oracle Forms with BI Publisher. When deploying the Web Service Stub at my development server, everything seem to be ok. But when I am deploying it to production server at my client place its giving me following e

  • Auto numbering in TOC tags

    I am creating books that use auto numbering in the headings. For example: 1.0 Introduction 2.0 First chapter 2.1 First topic 2.2 Second topic 2.2.1 Sub topic 1 When I generate the TOC, the numbers do not appear. I do not see any information in the Us