![](http://content.invisioncic.com/a324853/set_resources_1/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
mmorse
Registered Users - Approved-
Posts
18 -
Joined
Converted
-
FusionPro Products
No
mmorse's Achievements
-
Hello - I need to have a rule that changes the leading between a hard return and a natural line break. If the text naturally falls to a second line, I need tighter leading, and on a hard return I need larger leading (or the original leading set in paragraph settings). Here's where I'm at in terms of writing a rule. Note:this rule also forces text to indent when text naturally breaks to second line. This functionality works fine I just need to tighten the leading. Rule: var indent = ''; var itemName = Field("contentOne"); return itemName.split("<p>"+"<magnify type=leading factor=50>").filter(String).map(function(s){return indent.toLowerCase() + s;}).join("</magnify>"+"<p>"); Any feedback is much appreciated. Thanks
-
Hello - I'm running a rule that produces drop cap styling (First Letter of all cap word is slightly larger than the following). My issue is that my rule does not apply the drop cap styling to the first letter following a hard return. Rule: return '<smallcap><magnify type=setwidth factor=140>' + Field("dynamicField") + '</magnify></smallcap>'; I was advised to try rewriting this rule using the ReplaceSubstring(), but I'm not entirely sure how to implement it. Any advice is appreciated. Collect of project is attached. Thanks - Matt WORKING2 - Logo_FINAL.zip
-
Hello - I'm trying to run a rule that pulls text resource from whatever entry is selected from a drop down list. Without any conditional visibility rules applied in the "UI Rules" tab, the rule works perfectly. However, Once conditional visibility is applied, the rule no longer pulls a text resource to any field that was previously hidden. If I use a switch rule that references the exact name of the resource, there are no issues with conditional visibility. The rule that does not work after applying conditional visibility rules under the "UI Rules" tab: if (Field("address1A") != "") { return Resource(Field("address1A")); } else if (Field("address1B") != "") { return Resource(Field("address1B")); } else if (Field("address1C") != "") { return Resource(Field("address1C")); } else if (Field("address1D") != "") { return Resource(Field("address1D")); } else {return "";} Thanks for taking the time to look this over! Matt
-
I got it working....Thanks for the info!
-
Hi - In Marcom, is there a way to allow a user to select different font colors while creating a document from a template? Any help is appreciated.
-
Hi Dan - Yes, that's exactly right. I will send a collect to support. thanks
-
Hello - I've run into a puzzling issue. I'm using the stroke effect in advanced text effects on a specific field. However, when using outline only, the effect also applies to entirely separate field, but only one specific field out of six different text fields in the template. I've tried locking the both position and content of the field that I don't want affected, but it still applies the stroke effect, even though it's not selected in the advanced text effects window. Any thoughts or trouble shooting tips would be much appreciated. Thanks!
-
Of course....here is the rule... var bullet = ' • '; var itemName = Field("ulOne"); return itemName.split("<p>").filter(String).map(function(s){return bullet + s;}).join("<p>"); The second line of the list item falls to the left margin, instead of lining up with the left margin position of the first line.
-
That works...thank you! My only remaining issue is in the formatting of the subsequent lines in the multi-line list item. Is there anyway to format those so they fall in line with the first line, instead of defaulting back to the left margin? Thank you!
-
Hey Dan... I got it working, thanks so much for the help.
- 9 replies
-
- image rule
- javascript
-
(and 1 more)
Tagged with:
-
Hello - I've got a bullet list that, when empty, should suppress. My issue is that my rule enters a bullet on the first entry without the need for a return. Because the bullet exists, the field is never technically empty. If i use a rule that requires a return to create a bullet, I'm left with an empty line at the top, before the list begins. Any thoughts much appreciated. Rule: outstr = ""; itemName = "ulOne"; if(itemName != "ulOne"){ return outstr += ' ' + Field(itemName); }else if(outstr == null){ return itemName.suppress; }else{ return outstr += ' • ' + Field(itemName).replace(/<p>/g, "<br> • "); }; Thank you! Matt
-
Ok...So this is where I'm at.. instead of the image populating the "logo" filed, it produces the file name in text within the "dynnamicSubOne" field. How do I write this so that the image within another field is dynamically updated when a certain color is selected? Any help much apprciated Thanks! var color = ''; switch (GetFileName(Field("headerImage"))){ case "red.pdf": color = "PANTONE Red 032 C"; break; case "blue.pdf": color = "PANTONE 2945 C"; break; case "gray.pdf": color = "PANTONE 430 C"; break; case "Teal.pdf": color = "teal"; break; default: color = "PANTONE 266 C"; } var subHead = '<color name="' + color + '">' + ToUpper(Field("dynamicSubOne")) + '</color>'; switch (GetFileName(Field("logo"))){ case color = "PANTONE 2945 C": /*blue*/ newLogo = Resource("physicianServices.eps"); break; case color = "teal": /*teal*/ newLogo = Resource("pediatricAlliance.eps"); break; case color = "PANTONE 266C": /*purple*/ newLogo = Resource("pediatricPartners.eps") default: newLogo = false; } return [newLogo,subHead];
- 9 replies
-
- image rule
- javascript
-
(and 1 more)
Tagged with:
-
Thanks Dan - Could you elaborate on what exactly the would look like, and how it would correspond with the already existing rule? Thank you!
- 9 replies
-
- image rule
- javascript
-
(and 1 more)
Tagged with:
-
Hello All - I recently posted a question about changing font colors when a certain image is selected, and was given this rule as a solution, and it works perfectly. var color = ''; switch (GetFileName(Field("headerImage"))){ case "red.pdf": color = "PANTONE Red 032 C"; break; case "blue.pdf": color = "PANTONE 2945 C"; break; case "gray.pdf": color = "PANTONE 430 C"; break; default: color = "PANTONE 266 C"; } return '<color name="' + color + '">' + ToUpper(Field("dynamicSubOne")) + '</color>'; Since then, there was a request for additional functionality. Now ,in addition to the above, I need to return a unique image as well to a picframe ("logo") that is also associated with the color themes. I've made a number of attempts, but I'm not able to get the actual image to change. Any advice on how to associate a unique pic within the switch case rule? Any help very much appreciated! Matt
- 9 replies
-
- image rule
- javascript
-
(and 1 more)
Tagged with:
-
Thanks Ste! That worked perfectly, and a much more elegant solution. Much Appreciated! Matt