Jump to content

Bold Variable fields in a Javascript rule


dfalkowitz

Recommended Posts

dfalkowitz

You are on the right track, it uses the same tag. You do need to check the box above the scripting area that says "Treat return strings as tagged text" for it to work.

 

return '<b>'+Field("yourfieldname")+'</b>';

 

For more info about the use of formatting tags in FPD, review the Tags Reference guide: FusionPro menu > Documentation > Tags Reference

 

Hope this helps.

Link to comment
Share on other sites

  • 7 years later...

How about bolding a field within a line of text. This line is giving me a error. Thanks

 

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>";

Link to comment
Share on other sites

How about bolding a field within a line of text. This line is giving me a error. Thanks

 

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:

 

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>';

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...