Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(event.source.forReal)
- {
- if ("ok" == app.execDialog(dialog))
- {
- //If you add new checkboxes or text fields, be sure to modify this code as needed. Please pay attention to the syntax used!
- //Takes the entered text of the "Date" box and adds it to the stamp.
- var cMsg = dialog.Date;
- this.getField("Date").value= cMsg;
- event.source.source.info.exhibit = cMsg;
- //Takes the entered text of the "UserName" box and adds it to the stamp.
- //Copy these two lines if you are adding new text entry fields, updating the name of the text box as needed.
- cMsg = dialog.UserName;
- this.getField("UserName").value= cMsg;
- //Checks the status of each individual checkbox. If changed to "on", stamp is updated accordingly.
- //Copy one of these lines if you are adding new checkboxes, updating the name of the checkbox as needed.
- this.getField("cBox01").value= dialog.cBox01?"Yes":"Off";
- this.getField("cBox02").value= dialog.cBox02?"Yes":"Off";
- this.getField("cBox03").value= dialog.cBox03?"Yes":"Off";
- this.getField("cBox04").value= dialog.cBox04?"Yes":"Off";
- this.getField("cBox05").value= dialog.cBox05?"Yes":"Off";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment