Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Accidental Endless loop on button


Level 2

After much ado, I have finally gotten the customized submit by email button to work on several forms.  I added to a new form and now I have somehow created an endless loop and I cannot figure out why.  What I did: 

I added a regular button (not the submit by email button).  Under Object/Field I selected Submit.  Under Object/Submit, I selected submit as pdf.  I need to capture signatures on a form that will be audited down the road.

Then I added scripts.  I used java script, run at the client.

Then I added under PreSubmit* the following language:

var strToAddress, strCCAddress, strSubject

//Capture the values from the form fields.

strToAddress = txtToAddress.rawValue;

strCCAddress = txtCCAddress.rawValue;

strSubject = txtSubject.rawValue;{cURL:"mailto:"+ strToAddress + "?cc=" + strCCAddress + "&subject=" + strSubject,cSubmitAs:"PDF",cCharset:"utf-8"});

I checked this with the other forms which are not creating endless submissions and I cannot see that I did anything differently.  Can anyone help????


0 Replies