Quantcast
Channel: Adobe Community : Popular Discussions - LiveCycle Designer
Viewing all articles
Browse latest Browse all 16286

Hyperlink script with a space

$
0
0

The form I created has a button. In the body of the email that comes from this button I included a link for locating the pdf on a server. For instance we'll say the complete link is:

 

\\nw\pacific\title\building\RA-12-18530 Enclosure

 

However the space between the number 18530 and Enclosure is creating problems in the hyperlink of the email. See Figure 1 below.

//var RAO = RA-12-18530

 

 

// This scirpt creates the hyperlink with the RA file name

var rao = xfa.resolveNode("form1.Page1.RA").rawValue;

var bdco = "\\\\nw\\pacific\\title\\building\\";

var loca  = bdco + rao + ".pdf";

var loca2 = bdco + rao + " Enclosure.pdf";

 

The space in front of the letter E of Enclosure and the quote mark is causing the script to not make "Enclosure" part of the hyperlink. How do I write the script to attach the word " Enclosure" to the hyperlink? Thanks.

 

Hyperlink.JPGFigure 1


Viewing all articles
Browse latest Browse all 16286

Trending Articles