#1
|
|||
|
|||
![]()
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:
Code:
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>"; 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 |
#2
|
||||
|
||||
![]()
You just need to put your tags in quotes:
Code:
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>';
__________________
Ste Pennell FusionPro VDP Creator 9.3.15 Adobe Acrobat X 10.1.1 Mac OS X 10.12 |
#3
|
|||
|
|||
![]()
Thank you so much for your help! This solved the problem.
Andy |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|