Intermediate: How to add SharePoint Document ID and Version to PDF form
Recently one of our customers wanted to display SharePoint document version and document ID in his PDF form. There is a simple way how you can do it with PDF SharePoint. First of all, we prepare a simple template for this case; it contains two read only text fields where we will put SharePoint document id and document version value. Next, we need to add custom server script, for this I will use Server On Load rules. Here is script itself. if(!form.IsNew()){ //first we need to check if form instance is new, because unsaved form does not have version and ID...
read more