Go Back   PTI Marketing Technologies User Community > Software-Related Talk > Getting Started

Notices

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 18th, 2016, 08:40 AM
andym andym is offline
Junior Community Member
 
Join Date: Feb 2013
Posts: 21
Default Changing Fonts and Colors in paragraph

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>";
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
Attached Images
File Type: png Screen Shot 2016-01-18 at 9.00.43 AM.png (10.6 KB, 7 views)
Reply With Quote
  #2  
Old January 18th, 2016, 09:42 AM
step's Avatar
step step is offline
Senior Contributor
 
Join Date: Jan 2010
Location: Charlotte, NC
Posts: 954
Default Re: Changing Fonts and Colors in paragraph

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

LinkedIn
Reply With Quote
  #3  
Old January 18th, 2016, 10:05 AM
andym andym is offline
Junior Community Member
 
Join Date: Feb 2013
Posts: 21
Default Re: Changing Fonts and Colors in paragraph

Thank you so much for your help! This solved the problem.

Andy
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 08:20 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
(c) 2011, PTI Marketing Technologies™, Inc.