Jump to content

cmartin

Registered Users - Approved
  • Posts

    15
  • Joined

Posts posted by cmartin

  1. Thanks for all the help. JavaScript is not my thing but trying to learn. That worked and of course one additional question.

     

    I used that on 3 additional sections and it worked on 2 but not the other.

     

    Here is the one that failed.

     

    var email = Field("Email");
    var web = Field("Website");
    
    var numbers = [email,web];
    
    return numbers.filter(function(m){return m.match(/.*\s(?=.)/);}).join('<color name="Pantone 801"> • </color>');

     

    It just returns "return value" when validating it.

  2. Since you're adding color tags to the bullet, you need to check the box beside "Treat returned strings as tagged text" at the top of your rule.

     

    Great! That did it.

     

    Well, one last question.

     

    if (Field("Phone") != "")
       return "t. ";
    else
       return "";
    

     

    How do I change the "t." to a different font? Sorry for the basic questions. I have exampels but they usually include point size to.

  3. Replace the bullet in the join method with the tag I posted in my first reply:

    var office = (Rule("tagPhone1")) + (Rule("Change phone format Rule"))
    var fax = (Rule("tagPhone2")) + (Rule("Change fax phone format Rule"))
    
    var numbers = [office,fax];
    
    return numbers.filter(function(m){return m.match(/.*\s(?=.)/);})[color="Red"].join('<color name="PANTONE 801"> • </color>')[/color];
    

     

    Also, there's nothing wrong with putting parentheses around your "Rule" functions, but you don't need them. So, you could save yourself a few keystrokes and define your variables as:

    var office = Rule("tagPhone1") + Rule("Change phone format Rule");
    var fax = Rule("tagPhone2") + Rule("Change fax phone format Rule");
    

     

    Thanks for the help but the color line is not working.

     

    var office = Rule("tagPhone1") + Rule("Change phone format Rule")
    var fax = Rule("tagPhone2") + Rule("Change fax phone format Rule")
    
    var numbers = [office,fax];
    
    return numbers.filter(function(m){return m.match(/.*\s(?=.)/);}).join('<color name="PANTONE 801"> • </color>');

     

    I get:

    t. 901.484.4274 <color name="PANTONE 801"> • </color>f. 281.989.6950

     

    I have tried different colors (Cyan, Yellow, etc). I have the color defined in Advanced<colors. Does it need to be defined somewhere else?

  4. Got it fix to show the bullet now. How do I add the color change to it?

     

    var office = (Rule("tagPhone1")) + (Rule("Change phone format Rule"))

    var fax = (Rule("tagPhone2")) + (Rule("Change fax phone format Rule"))

     

    var numbers = [office,fax];

     

    return numbers.filter(function(m){return m.match(/.*\s(?=.)/);}).join(" • ");

  5. Take a look at this thread: http://forums.pti.com/showthread.php?t=3554

     

    It discusses your scenario almost exactly. The only difference would be the color bullet points. Assuming you've defined "PANTONE 801" in your FP template, you can apply color to a bullet like this:

    return '<color name="PANTONE 801"> • </color>';
    

     

    That was one of the threads I was trying follow to change to work.

     

    Here is what I am trying and it is not adding the bullet.

     

    var office = (Rule("tagPhone1")) + (Rule("Change phone format Rule"))

    var fax = (Rule("tagPhone2")) + (Rule("Change fax phone format Rule"))

     

    var numbers = [office + fax];

     

    return numbers.filter(function(m){return m.match(/.*\s(?=.)/);}).join(" • ");

     

    I get:

    t. 901.484.4274 f. 281.989.6950

  6. I have seen similar things posted but could not get those changed to work for what I need.

     

    Trying to create a conditional rule to where bullets are added if there is more than one field or rule on the line. Also, the bullets need to be in a color (Pantone 801) defined in the document.

     

    t. 888.999.6666 • f. 888.999.6666 • d. 888.999.6666

    t. 888.999.6666 • f. 888.999.6666

    t. 888.999.6666

    f. 888.999.6666 • d. 888.999.6666

  7. I am having all kinds of issues with the latest version of VDP Creator. Running 9.3.22, Acrobat DC 2015. I am running El Capitan.

     

    First issue is a screen preview issue. All the Variable frames on the page preview the text and images in the wrong place. Instead of being at the top of the frame they are previewing about 1/2 inch low and a 1/4 inch tot he left. You can see in the attached image the copy not previewing properly in the blue text frames. When I compose they are fine but not in preview. It is tough to lay things out this way.

     

    Next issue is the toolbox keep disappearing. The toolbox will be showing and I will go in to edit some copy. When I exit out of that screen the toolbox disappear. If I click on the desktop and then back to Acrobat they are back. Really annoying!

     

    Biggest issue. When trying to edit a variable text frame. The copy is not showing up. It is there and I can highlight it but I cannot see it. It is suppose to be black and is previewing that way. Even when I highlight it I cannot see the words like it would be if the copy was white.

    ScreenShot2015-10-27at10_46.48AMcopy.jpg.a95ea8567675f3ca6c2214638835f6a4.jpg

    ScreenShot2015-10-27at10_47.41AMcopy.jpg.5aade6e4bcd94ab4dd5efe2a58d6f9cf.jpg

  8. Found this javascript in a thread today and helped clean up a messy rule set I had. Thanks

     

    return [Trim(Field("First Name")),Trim(Field("Middle Name")),Trim(Field("Last Name"))].filter(String).join(" ");

     

    My question is can I add to this or do I need to create a new rule and add the rule it to this. I want to take the Middle Name field and if it is 1 character long add a period after it. The trim will take care if it is blank and if it is longer do nothing other than the trim any blank off the end.

  9. Anybody else having an issue with the update? I am running MAC OX 10.10 (Yosemite) and Adobe Indesign CC 2014 (10.1.0.71) latest update. I run the installer and it adds the plugins to the plugin folder for Indesign and when I open Indesign it tells be it doesn't recognize FusionProCC10UI.IndesignPlugin and a valid plugin.

     

    I have tried uninstalling and trying again and same thing. I made sure the plugins where deleted and they were removed from the Library/Application Support folder to.

     

    I actually think there is an issue with the install or the package in the installer. After I install it and look in the Indesign Folder/Plugins the plugin it lists as not valid is Zero bytes. If I look in the Library/Application Support/PTI/PlugIns/Design/Indesign were all the plugins are it is the same there. All the others UI files are around 87 KB except the one I need.

×
×
  • Create New...