eSignLive.dashboard().createDraftFromTemplate(withGUID: "Z0P-GnprcP94hjwS6oPWpd1opzc=",withCallback: {(dict: [AnyHashable : Any]?) -> Void in
if let myDict = dict, let guid = myDict["guid"] as? String {
eSignLive.dashboard().startEditingTransaction(withGUID: guid, canAddDocuments: true, canDeleteDocuments: true, canReorderDocuments: true)
print(myDict)
}
})
In this example, I manually input the template ID. What this function does is to create a draft package cloning from the template by ID. So you will see this draft package in your web portal in real time:
In callback function, it returns a dictionary containing the relevant info regarding to this draft package, and then, client can use package ID to start a package creation page like below:
Hope this could help!
Duo
Reply to: Create transaction from template iOS SDK
Tuesday, August 6, 2019 at 04:46am