Hamoe

Untitled

Jul 11th, 2014
362
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if(event.source.forReal)
  2. {
  3.   if ("ok" == app.execDialog(dialog))
  4.   {
  5.  
  6.     //If you add new checkboxes or text fields, be sure to modify this code as needed. Please pay attention to the syntax used!    
  7.  
  8.  
  9.     //Takes the entered text of the "Date" box and adds it to the stamp.
  10.     var cMsg = dialog.Date;
  11.     this.getField("Date").value= cMsg;
  12.  
  13.     event.source.source.info.exhibit = cMsg;
  14.  
  15.     //Takes the entered text of the "UserName" box and adds it to the stamp.
  16.     //Copy these two lines if you are adding new text entry fields, updating the name of the text box as needed.
  17.     cMsg = dialog.UserName;
  18.     this.getField("UserName").value= cMsg;
  19.  
  20.         //Checks the status of each individual checkbox. If changed to "on", stamp is updated accordingly.
  21.         //Copy one of these lines if you are adding new checkboxes, updating the name of the checkbox as needed.
  22.     this.getField("cBox01").value= dialog.cBox01?"Yes":"Off";
  23.     this.getField("cBox02").value= dialog.cBox02?"Yes":"Off";
  24.     this.getField("cBox03").value= dialog.cBox03?"Yes":"Off";
  25.     this.getField("cBox04").value= dialog.cBox04?"Yes":"Off";
  26.         this.getField("cBox05").value= dialog.cBox05?"Yes":"Off";
  27.   }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment