Jump to content

-Lisa-

Registered Users - Approved
  • Posts

    191
  • Joined

Everything posted by -Lisa-

  1. I'm not sure why I'm having so much difficulty with this one. I'm sure the answer is obvious: Working on a kiss cut label template set 4 up on a page in my template with a static background. There are up to 16 available fields in the data. I need to add additional pages with the same static background when data is present in fields 5 through 16. Field 6 won't exist unless there's data in Field 5. Field 10 won't exist unless there's data in Field 5 through 9, etc. I thought a basic OnRecordStart rule would work by creating a 4 page template and then enabling/disabling pages based on the presence of data in any field after #4 like this: if(Field("Card5") == "") { FusionPro.Composition.SetBodyPageUsage("Page2", false); FusionPro.Composition.SetBodyPageUsage("Page3", false) FusionPro.Composition.SetBodyPageUsage("Page4", false); if(Field("Card5") !="" && Field("Card9") =="" && Field("Card13") =="") { FusionPro.Composition.SetBodyPageUsage("Page2", true); FusionPro.Composition.SetBodyPageUsage("Page3", false) FusionPro.Composition.SetBodyPageUsage("Page4", false); } else if(Field("Card5") !="" && Field("Card9") !="" && Field("Card13") =="") { FusionPro.Composition.SetBodyPageUsage("Page2", true); FusionPro.Composition.SetBodyPageUsage("Page3", true); FusionPro.Composition.SetBodyPageUsage("Page4", false); } else if(Field("Card5") !="" && Field("Card9") !="" && Field("Card13") !="") FusionPro.Composition.SetBodyPageUsage("Page2", true); FusionPro.Composition.SetBodyPageUsage("Page3", true); FusionPro.Composition.SetBodyPageUsage("Page4", true); } Obviously I'm way off base here. Any thoughts?
  2. Thanks! Unfortunately this doesn't work. Just as with my version, it's returning the percentage sign in front of the number. It need the symbol after the number.
  3. Hello all, Trying to come up with a way to remove a percentage symbol if it already exists in the data but return the symbol if it does not exist. I already successfully created a replace rule for the presence of a dollar sign: return Field("Price").replace('$', ""); If I simply replace the dollar symbol with a percentage symbol, I'm not getting the same result: return Field("Percent").replace("", '%'); Any ideas on what I'm obviously doing wrong? Thanks!
  4. Goodness, haven't looked at this one in years but it's come back to haunt me... When using the rule in it's original form: <code>return TaggedTextFromRaw(Field("YOUR FIELD NAME")).replace(/(.*)(\s)(.+)$/, "$1 $3");</code> I'm now getting an additional space between the two words that break to the next line. What would read without the rule as: Book Title, Author First Name Author Last Name Is now displaying with the rule as: Book Title, Author First Name Author Last Name There is an additional space between the first and last names. I realize this thread/rule is old so perhaps something has changed with the newer FP versions and oS?
  5. You wouldn't use Text Profile Attributes for this. Instead, use Image Collections with User Assignments. This allows you to assign images by user.
  6. If you have iForms capability, you could also set up the different turnaround times via a form field which then changes the pricing based on the selection in that field (Dynamic Pricing).
  7. You can achieve this by using Text Profile Attributes for the address fields and using Image Collections for the images. There is documentation for this that exists but lately I have not had much success with the search for documentation in MC so I hope the below helps you at least get going: You create the Text attributes under "Profile Attributes" in the Template section of MarcomCentral, then upload the user assignments either in the same area or via Bulk Uploads. With regards to the images, create a library and upload all of your images. Once uploaded, head over to the Image Collections tab in that library and create a new collection. Under the "Settings" Section, make sure to select "Yes" under "Filter Images by User?". Then, find your library and all of the images you want to assign. Once you finish this, go back to Bulk Uploads, download an existing User spreadsheet because you'll need the ID for each user (the number in the very last column). Then select the Image Collection User Assignments Bulk Upload and download the worksheet and fill in the appropriate information and re-upload.
  8. Anyone know of a way to add a space between all characters of a field? I have a numeric field where a space is required between each and every character. It's a Zip Code field so the majority of the records will contain five digits. Thanks!
  9. If the font family you're using has an actual bold style, you'll need to actually use the font name tag rather than use the bold tags so the font switches to the bolded version. For instance, say the font is Arial Bold, you would use: var fax = Rule("fax_Rule"); if (fax.length > 0) { return fax + " " + <f name="Arial Bold">F</f> ; }
  10. I agree though I'm assuming from the non-response that this is not possible.
  11. Hi all, Anyone know a way to pull an order's shipping address from a field within a template which also happens to be pulled from an external data file?
  12. You are the best, Ste! Thank you again!!
  13. Hi Dan, I'm trying to do something similar here by placing the FusionPro.Composition.outputFileName into an OnNewOutputFile callback rule. When I validate the rule, I receive the error: This is what I'm placing inside the callback rule: return FusionPro.Composition.outputFileName(Field("LastName") +'_'+Field("FirstName"));I thought at first that something may be wrong with my syntax but that usually returns a syntax error...
  14. AH! Why didn't I think of that? Thanks, Ste! You're amazing!
  15. Amazing, Step! Thank you! Though I shouldn't be surprised. You are always such a help to us all. Now, here's another question... Is there a way to "proof" this to the customer with only one front and the four backs? Eventually the intention is to upload this to a MarcomCentral portal. If I need to show the front side four times, I will. But I'd like to try and give them the proof with the front only previewing once if I can.
  16. Thanks. Unfortunately the back isn't variable so I'm not sure this would work. For every card I need to produce, each one receives, say, 50 of Back A, 50 of Back B, 50 of Back C, and 50 of Back D all with the same front. I would like a way to impose this so that everything is all on one imposed form (or, if I need 4 different impositions, that's fine too).
  17. Thank you! I'm not following how this rule then imposes the press form?
  18. Hi all, Working on a template that has multiple back sides. Each time the job is produced, I need to proof the common front with all four backs. Ideally I would then like to create an imposition file that gangs all four backs on the same press sheet. The problem is when the PDF is imported into Imposer, it is read as a 5 page template and therefore will not impose the way I need. Has anyone accomplished this? I thought about using the Imposition Background Sheet but I don't really believe that's really going to work.
  19. Hi everyone, If a user is given the ability to select a cost center, can that user save that as their default cost center somehow? Based on what I've tried so far, there is no way to save a default.
  20. Worked like a charm! Thanks as always, Dan!
  21. Is there a way to expand upon this code so that if it recognizes a widow and the preceding "word" prior to the last word in the paragraph is an ampersand symbol that it will break the line starting with the word before the ampersand? For example, when using the code below, "Test Event Name Title & Location" currently breaks as: "Test Event Name Title & Location" Would like to to break as: "Test Event Name Title & Location" return TaggedTextFromRaw(Field("YOUR FIELD NAME")).replace(/(.*)(\s)(.+)$/, "$1 $3");
  22. Does MC allow for one group to use Blanket Numbering in a store for one user group and allow for the manual entry of a PO number for another group? I have one location that doesn't use PO's and another that requires the use of PO's. I need to keep them separated without activating a completely separate portal.
  23. If you are using the new Admin tool, you could use the new Image Profile Attributes (I think they're now called Personalized Images?) to control what image(s) are available to specific users.
  24. Well you can use conditional visibility from the UI rules tab in template configuration? But this will only work if the all of the auto-filled fields are dropdowns.
×
×
  • Create New...