Go Back   MarcomCentral (PTI) and FusionPro User Communities > Software-Related Talk > The JavaScript Library > Formatting Text

Notices

Reply
 
Thread Tools Search this Thread Display Modes
  #11  
Old February 26th, 2013, 01:17 AM
biggestbossfan biggestbossfan is offline
Junior Community Member
 
Join Date: Jul 2012
Location: Johannesburg South Africa
Posts: 20
Default Re: Mysteries of the <span> tag revealed

Aha - that works.

Thanks
__________________
FusionPro 9.0.3
Acrobat X 10.1.6
Mac OS Mountain Lion 10.8.3
FPExpression 3.1.13
Reply With Quote
  #12  
Old February 26th, 2013, 11:35 PM
biggestbossfan biggestbossfan is offline
Junior Community Member
 
Join Date: Jul 2012
Location: Johannesburg South Africa
Posts: 20
Default Re: Mysteries of the <span> tag revealed

This code yields the correct colours but doesn't insert a line break/feed.
Could there be an issue with the \n?


var result = '<color name ="pantone 335 C">' + Field("First name") + " " + Field("Last name") + '</color>';
result += (Field("Qualification 1") != "") ? '\n <color name = "pantone 430 C">' + Field("Qualification 1") + " " + Field("Qualification 2") + '</color>' : "";
return result;
__________________
FusionPro 9.0.3
Acrobat X 10.1.6
Mac OS Mountain Lion 10.8.3
FPExpression 3.1.13
Reply With Quote
  #13  
Old February 27th, 2013, 01:23 AM
step's Avatar
step step is offline
Senior Contributor
 
Join Date: Jan 2010
Location: Charlotte, NC
Posts: 955
Default Re: Mysteries of the <span> tag revealed

Try replacing the "\n" with "<br>"
__________________
Ste Pennell
FusionPro VDP Creator 9.3.15
Adobe Acrobat X 10.1.1
Mac OS X 10.12

LinkedIn
Reply With Quote
  #14  
Old February 27th, 2013, 08:37 PM
biggestbossfan biggestbossfan is offline
Junior Community Member
 
Join Date: Jul 2012
Location: Johannesburg South Africa
Posts: 20
Default Re: Mysteries of the <span> tag revealed

Thanks - perfect
__________________
FusionPro 9.0.3
Acrobat X 10.1.6
Mac OS Mountain Lion 10.8.3
FPExpression 3.1.13
Reply With Quote
Reply

Tags
markup, span, tags

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 04:36 PM.


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