andym Posted January 18, 2016 Share Posted January 18, 2016 Our client has a flyer with open text fields where they can put in multiple headers and paragraphs. The headers and paragraphs are specific fonts and colors, with a line break between each. What I came up with is showing the right color, font and spacing, but instead of their header value, it returns the field name. Here is what I have: if (Field("Header One")== "" && Field("Paragraph One") == "") return "" else return <color name="Light Blue"><f name="HelveticaNeueLT Std Med"> Field("Header One") </f></color> + "<br>"+ <color name="Black"><f name="HelveticaNeueLT Std Lt"> Field("Paragraph One") </f></color> + "<br>"; Instead of the header or paragraph value they submit, it returns "Field("Header One")" and " Field("Paragraph One")"(attached is a screenshot showing it is the right color and font, but not the value). Am I missing a tag of some sort to return the value of the fields instead of the field names, or am I missing this all together in my approach? Thank you for any guidance you can offer. Andy Quote Link to comment Share on other sites More sharing options...
step Posted January 18, 2016 Share Posted January 18, 2016 You just need to put your tags in quotes: if (Field("Header One")== "" && Field("Paragraph One") == "") return "" else return [color="Red"]'[/color]<color name="Light Blue"><f name="HelveticaNeueLT Std Med">[color="Red"]' + [/color]Field("Header One")[color="Red"] + '[/color]</f></color><br><color name="Black"><f name="HelveticaNeueLT Std Lt">[color="Red"]' + [/color]Field("Paragraph One")[color="Red"]+ '[/color]</f></color><br>[color="Red"]'[/color]; Quote Link to comment Share on other sites More sharing options...
andym Posted January 18, 2016 Author Share Posted January 18, 2016 Thank you so much for your help! This solved the problem. Andy Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.