Expand my Community achievements bar.

Set an email address based on radio button

Avatar

Level 7

I have a radio button that when set needs to submit the form to the first, already entered email address and add a second email address which is not entered or selected anywhere in the form. How would I do this.

I'm currenlty using this script on a hidden email button:

 

//Create a variable to hold the document object

 

var

 

oDoc.mailDoc({

bUI

:

true,

 

cTo: techserv@fheg.follett.com

,

 

cSubject

: "New Call: Home Office SAR - " + form1.page1.sectionOne.positioned2.firstName.rawValue + " " + form1.page1.sectionOne.positioned2.lastName.rawValue

,

Thanks,

MDawn

1 Reply

Avatar

Level 7

I got this working by adding another invisible button. Then I was experimenting and now it's not working.Here's the script I'm using:

 

if

(form1.page4.pcEquip.newReplace.costCenter.presence ==

"visible") 

{

Button5.execEvent("click");

}

else

{

Button4.execEvent("click");

}

When you click the button that is supposed to initiate the series, the form just sits with no respone. There's nothing showing in Ctrl + J window, either.

Thanks,

MDawn