Jump to content

heather-grzybowski

Members
  • Posts

    8
  • Joined

Converted

  • FusionPro Products
    No

heather-grzybowski's Achievements

Rookie

Rookie (2/14)

  • First Post Rare
  • Week One Done
  • One Month Later
  • One Year In
  • Conversation Starter Rare

Recent Badges

10

Reputation

  1. Thank you @Dan Korn I appreciate the suggestion for putting it into table and will definitely go back and set this up that way when I have the opportunity. Since I already have it built with the separate boxes, etc. Is there no code that will work that will allow for the background fill to change based on the choices I've set up?
  2. Thanks for the feedback sorry I didn't provide enough information! Here is an output example that this page may create. The creator basically has up to 20 boxes to fill in on this page based on the diagram they are trying to display. They are filling in the fields for each box they are connecting together. Because of the nature of the flexibility, they want to include/exclude boxes a table didn't feel like it would work the way we wanted it to. Each box has: A content field (multi line text) Rule already built to change font color based on fill color. Box fill color (dropdown pick list) - this is where I'm trying to apply the rule in question Graphic choices for the in between arrows connecting one box to another. They are choosing the color for each box via a field for example: Field "Color1" = Fill text frame "Box1" Field "Color2" = Fill text frame "Box2" Does this help at all?
  3. Hello! I'm trying to work out the code to allow for a field selection to determine the fill color of a text box. I have 20 fields named Color1-20 with the selection of either Blue or Gray. My text boxes are named Box1-20. Blue = Denim and Gray = Ash in my color palette. Based on looking at the threads I pulled out this one because I thought it could work: } var colorName = Field("Color1") == "Blue" ? "Denim" : "Ash"; FindTextFrame("Box1").fillColorName = colorName; } I had it working but then I tried to duplicate it for all of my boxes and I can't get it to work past Box 1. Just a note if you look at the image it will say BoxA-E. I was testing whether it was my box names causing an issue. I'd like to keep it named Box 1-20. I know I could put in graphic boxes behind the text box but I was hoping to not make this page more complicated and figured I could do it with code. I hope that makes sense!
  4. UGH - thank you for the feedback. Spelling is usually my problem, and I totally didn't catch that this time. I appreciate the advice on the log file and will be sure to continually check that in the future.
  5. Thank you! I did quickly add the code you shared above, uploaded it and tested and didn't see any change. I've attached the files if you wouldn't mind taking a look. Let me know if I can provide any additional details. Thanks! EB_CL_Pitchbook_CCT-2023_Feb-28-2023_07-54-57.zip
  6. As an add on to this question - I've been testing further and when the field answers are anything but Yes the pages seem to show. Opposite from what I thought I was setting up.
  7. I have a template that has several body pages that are included/excluded based on a simple yes/no fields. Some have multiple pages that would be included based on a Yes and some have only one. I've set all of the body pages to Unused. The only one that does work is the first one - "TeamSlide" but that has a Used and Unused page reference. The rest do not produce any pages with a "Yes" answer. I get no errors in my expression. All are using the same drop-down library so the Yes matches for all answers and is capped Y. Any help would be appreciated. Thanks Heather } if (Field("TeamSlide") == "Yes") { FusionPro.Composition.SetBodyPageUsage ("Team+Management", true); FusionPro.Composition.SetBodyPageUsage ("Team-Only", false); } if (Field("ComInsInclude") == "Yes") { FusionPro.Composition.SetBodyPageUsage("Divder-ComIns",true); FusionPro.Composition.SetBodyPageUsage("ComIns1",true); FusionPro.Composition.SetBodyPageUsage("ComIns2",true); FusionPro.Composition.SetBodyPageUsage("ComIns3",true); FusionPro.Composition.SetBodyPageUsage("ComIns4",true); FusionPro.Composition.SetBodyPageUsage("ComIns5",true); } if (Field("FleetInclude") == "Yes") { FusionPro.Composition.SetBodyPageUsage("ComIns-Fleet",true); } if (Field("CaptivesInclude") == "Yes") { FusionPro.Composition.SetBodyPageUsage("ComIns-Captives",true); } if (Field("EmpBenefitsInclude") == "Yes") { FusionPro.Composition.SetBodyPageUsage("Divider-EmpBen", true); FusionPro.Composition.SetBodyPageUsage("EmpBen1", true); FusionPro.Composition.SetBodyPageUsage("EmpBen2", true); FusionPro.Composition.SetBodyPageUsage("EmpBen3", true); FusionPro.Composition.SetBodyPageUsage("EmpBen4", true); FusionPro.Composition.SetBodyPageUsage("EmpBen5", true); FusionPro.Composition.SetBodyPageUsage("EmpBen6", true); FusionPro.Composition.SetBodyPageUsage("EmpBen7", true); FusionPro.Composition.SetBodyPageUsage("EmpBen8", true); FusionPro.Composition.SetBodyPageUsage("EmpBen9", true); FusionPro.Composition.SetBodyPageUsage("EmpBen10", true); } if (Field("TrendsInclude") == "Yes") { FusionPro.Composition.SetBodyPageUsage("EmpBenTrends1",true); FusionPro.Composition.SetBodyPageUsage("EmpBenTrends2",true); FusionPro.Composition.SetBodyPageUsage("EmpBenTrends3",true); FusionPro.Composition.SetBodyPageUsage("EmpBenTrends4",true); FusionPro.Composition.SetBodyPageUsage("EmpBenTrends5",true); FusionPro.Composition.SetBodyPageUsage("EmpBenTrends6",true); FusionPro.Composition.SetBodyPageUsage("EmpBenTrends7",true); FusionPro.Composition.SetBodyPageUsage("EmpBenTrends8",true); FusionPro.Composition.SetBodyPageUsage("EmpBenTrends9",true); FusionPro.Composition.SetBodyPageUsage("EmpBenTrends10",true); FusionPro.Composition.SetBodyPageUsage("EmpBenTrends11",true); FusionPro.Composition.SetBodyPageUsage("EmpBenTrends12",true); FusionPro.Composition.SetBodyPageUsage("EmpBenTrends13",true); } if (Field("EducationInclude") == "Yes") { FusionPro.Composition.SetBodyPageUsage("Education1",true); FusionPro.Composition.SetBodyPageUsage("Education2",true); FusionPro.Composition.SetBodyPageUsage("Education3",true); } if (Field("COVIDInclude") == "Yes") { FusionPro.Composition.SetBodyPageUsage("COVID1",true); FusionPro.Composition.SetBodyPageUsage("COVID2",true); } if (Field("JFGInclude") == "Yes") { FusionPro.Composition.SetBodyPageUsage("Divider-JFG",true); FusionPro.Composition.SetBodyPageUsage("JFG1",true); FusionPro.Composition.SetBodyPageUsage("JFG3",true); FusionPro.Composition.SetBodyPageUsage("JFG4",true); FusionPro.Composition.SetBodyPageUsage("JFG5",true); FusionPro.Composition.SetBodyPageUsage("JFG6",true); FusionPro.Composition.SetBodyPageUsage("JFG7",true); FusionPro.Composition.SetBodyPageUsage("JFG8",true); FusionPro.Composition.SetBodyPageUsage("JFG9",true); FusionPro.Composition.SetBodyPageUsage("JFG10",true); } if (Field("PrioritiesInclude") == "Yes") { FusionPro.Composition.SetBodyPageUsage("Priorities",true); } if (Field("ExecSummaryInclude") == "Yes") { FusionPro.Composition.SetBodyPageUsage("Executive Summary",true); } }}
  8. I'm trying to create a document that allows the user to include or exclude page numbers. I have a field set up to allow the user to say Y/N but I can't figure out how to write a rule where I can grab the $pagenum field.
×
×
  • Create New...