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

Notices

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 26th, 2018, 11:15 AM
rrdwitt rrdwitt is offline
Regular Contributor
 
Join Date: May 2016
Location: Missouri
Posts: 53
Default Bolding Field within span and literal text

Hi all. This line is giving me a error. I want to bold the field within the span text.
Thank you very much in advance

return "<span>" + RawText("To make your gift via mail, please complete the form below and return it with the envelope provided. You may also visit us at " '<b>'+Field("yourfieldname")+'</b>'; "to give online."); + "</span>";
Reply With Quote
  #2  
Old February 27th, 2018, 09:12 AM
David Miller David Miller is offline
Senior Contributor
 
Join Date: Oct 2008
Location: Hamden, CT
Posts: 266
Default Re: Bolding Field within span and literal text

Quote:
Originally Posted by rrdwitt View Post
Hi all. This line is giving me a error. I want to bold the field within the span text.
Thank you very much in advance

return "<span>" + RawText("To make your gift via mail, please complete the form below and return it with the envelope provided. You may also visit us at " '<b>'+Field("yourfieldname")+'</b>'; "to give online."); + "</span>";
You might try this instead:

Code:
return '<span> To make your gift via mail, please complete the form below and return it with the envelope provided. You may also visit us at <b>' + Field("yourfieldname") + '</b> to give online. </span>';
__________________
David Miller
FusionPro VDP Creator 12.0.3
Adobe Acrobat Pro 2021
macOS Big Sur 11.6.2
Reply With Quote
  #3  
Old February 27th, 2018, 01:57 PM
rrdwitt rrdwitt is offline
Regular Contributor
 
Join Date: May 2016
Location: Missouri
Posts: 53
Default Re: Bolding Field within span and literal text

Thanks David!!
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 04:43 PM.


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