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 May 28th, 2015, 05:05 PM
daniel daniel is offline
Regular Contributor
 
Join Date: Apr 2015
Posts: 92
Default Collapse Line of Text

How do I return a collapsed line when field is not filled out?
Reply With Quote
  #2  
Old May 29th, 2015, 07:12 AM
step's Avatar
step step is offline
Senior Contributor
 
Join Date: Jan 2010
Location: Charlotte, NC
Posts: 955
Default Re: Collapse Line of Text

In the variable text editor, highlight the line of text you want to "collapse", click "Paragraph," and select "Suppress if containing empty variables."

To do this in a text rule:
Code:
var name = Field("Name");
return (name) ? "My name is " + name + "!" : "";
__________________
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 June 2nd, 2015, 04:57 PM
daniel daniel is offline
Regular Contributor
 
Join Date: Apr 2015
Posts: 92
Default Re: Collapse Line of Text

THANKS, that worked.
Reply With Quote
Reply

Tags
collapse, text

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 03:30 PM.


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