I am trying to create a new document wherein some of the field values would come from the current document. Note that current document is not in edit mode.
There are three buttons in the current document:
Edit Document
//Validate inputs
myForm = window.document.forms[0]
myForm.Refresh.click()
myForm.Edit.click()
Add Guest
//Validate inputs
myForm = window.document.forms[0]
myForm.AddGuest.click()
Close
myForm = window.document.forms[0]
myForm.Close.click()
Once the Add Guest button is clicked, it must be able to access the lotusscript agent which can be found in another hidden button, "AddGuest".
@Command([ToolsRunMacro]; "AddGuests")
Once the Add Guest button's clicked, there must be a new form coming up but some of the field values (first name, last name, etc.) must retain and the form must be editable so I can save it as new document (not a response). Can anyone help me with the agent code to do that?
