Jump to content

hkenney

Registered Users - Approved
  • Posts

    17
  • Joined

Posts posted by hkenney

  1. I have been trying to make the register symbol from my data file superscript. I realized after a while that the font I was using was the problem so I tried using ReplaceSubstring to change the font of only the symbol but it still does not seem to be working. I found someone with a similar issue and tried modifying the code that worked for them, my modified version is below.

     

    FieldContent = Field("Title")
    return ReplaceSubstring(TaggedTextFromRaw(FieldContent), "®",
       "<f name=\"Adobe Garamond Pro\"><superscript>®</superscript></f>");

  2. I'm having trouble writing a rule to change the color of the "@" symbol to black while keeping the rest of the email address red. When I validate the rule it returns my field correctly but it is not changing the color when I preview it. I have checked and I labeled the color exactly how it is spelt in my loaded colors and I have "treat returned strings as tagged text" selected. What am I missing? Thanks!

     

    return Field("Email").replace(/@/g, '<color name="Black">@</color>');

  3. Hello,

     

    I am working on a project where the user is allowed to choose if they would like their display card to be single or double sided. I did not want users to have to separately upload a front and back image so I created a rule to allow users to upload a single two-page PDF and it is working properly.

     

    Now I am trying to figure out how to suppress the second page and impose it properly if they only upload a single paged PDF.

     

    Thanks for you help!

  4. I have never used a rule like this before and I am lost. I have a job thats needs to number 2" x 2" construction jobsite stickers starting with "001" and ending with whatever number the user fills in, the end number won't exceed 999. So in the end I will need an imposed multipage(depending on how many stickers the user needs) PDF with a different number on each sticker.

     

    Let me know if I need to provide more details!

     

    Thanks!

  5. if (!Copyfit(new MagnifyAttributes("text", 8, 70, 8, 70)))

    {

    FusionPro.Composition.CurrentFlow.content = '<span font="Gotham Condensed Medium">' + FusionPro.Composition.CurrentFlow.content + '</span>';

    ReportWarning("Could not copyfit text in flow " +

    FusionPro.Composition.CurrentFlow.name);

    }

     

     

    I used this rule to change the font of a single variable field on the back of a business card(and it worked like a charm) but now I want to apply it to a single line(the email field) on the front. This field is included in a frame with four other lines that I don't wish to adjust. When I try to write a CopyFitLine rule I receive an error message that <Arial> is not loaded but I am not using arial anywhere in this job.

  6. Is it possible to link approval requirements to individual items versus the entire order? For example, if several items are ordered at the same time and only one requires approval, does the entire order have to be reviewed by the manager (approver)?

     

    Thanks,

     

    Hilary

  7. Sorry I have not responded I have been out of the office. Still trying to find a solution for this though... I have attached a screen shot this time. I put each variable field in it's own text box, as you suggested, but still can not figure out how to expand the name and phone number fields to fill the entire red space if the email(the bottom text box) is empty.

     

    Thanks for all you help!

     

     

    Hilary

    Screen Shot 2015-07-01 at 11.27.50 AM.pdf

  8. I'm trying to figure out how to write a phone formatting rule that will allow for this format: 336 876 9876

     

    I was trying this out below but had some issues if an extension was present or if there was no area code. I'm completely in the dark when it comes to coding! HALP:)

     

    var str = Field("Phone");//Phone

    var newStr = str.replace(/\s+/g, '');

     

    return Left(newStr,3) + " " + Left(Right(newStr,6),3) + " " + Right(newStr,4);

     

    Thanks in advanced!

     

    Hilary

  9. I'm working on a real estate yard sign and they want to optimize space if an email is not added to the sign. Everything is static except for three fields (Agent name, Phone Number, and Email) and all of these are included in one text box. If the agent does not want their email included in the sign our client would like the name and phone number to expand to to fill the text box, however when I select the over flow option and then adjust text to fit>allow text to expand to fill it actually shrinks all my text. What am I doing wrong here?
×
×
  • Create New...