Quantcast
Channel: Adobe Community : Discussion List - LiveCycle Forms
Viewing all articles
Browse latest Browse all 1160

CC Shows as null value and required field validation

$
0
0

Hi all,

 

I am using the following script attached to a button on my form:

 

var cToAddr = "gmdon@rogers.com";

var cCCAddr = Email1.rawValue;

var cBenAddr = Email2.rawValue; if(cBenAddr != "") cCCAddr += ";" + cBenAddr;

var cSubLine = "Form X-1 returned from client"; var cBody = "Thank you for submitting your form.\n" + "Save the mail attachment for your own records";

 

event.target.mailForm({

          bUI: true,

          cTo: cToAddr,

          cCc: cCCAddr,

          cSubject: cSubLine,

          cMsg: cBody

});

 

 

It works great unless nothing is entered into "Email1" or "Email2".  Then the email client shows "null" in the CC address field.  I'm wondering how to make it just leave CC blank if nothing is filled into either field?

 

I do have one other question.  When using the "standard submit button", it checks for a value in the 'required fields' and highlights them if they are not filled out.  I need to have dynamic CC addresses as you can see above so I can't use the standard button.  The question is how can I keep my required fields using this new button?

 

Sorry for being so wordy.  Thank you so much in advance for any assistance.


Viewing all articles
Browse latest Browse all 1160

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>