Page 1 of 1

Related documents and required fields

Posted: 15 Jun 2017
by Jens.Hetze
Hi sp forms team.

there is a question to your post: https://spform.com/documentation/related-documents

I have configured the form to set the lookup column to the parent item. In the case the lookup column is an required field. So the document will be checked out by upload by drag & drop, because the required field was not set. Then fd.updateDroppedDocuments will be set the lookup column, but the document is still checked out.

Is there an solution to check in the documents after set field by fd.updateDroppedDocuments?

Yours sincerely
Jens Hetze

Re: Related documents and required fields

Posted: 16 Jun 2017
by Dmitry Kozlov
Hi Jens,
You can try to use SharePoint Designer workflow to check in a document when it is added.

Re: Related documents and required fields

Posted: 08 May 2019
by ibarrandres
This causes a version conflict since the UpdateDropDocuments function is updating the fields and at the same time the workflow is trying to update the file properties. I tried pausing the workflow 1 minute to see if it would allow time for the function to finish the update but I am getting different results every time. As soon as I remove the workflow trigger to manual.. I don't get this problem.

The console error you get:

Uncaught updateDroppedDocuments failed: Version conflict.
undefined

Any thoughts on how to solve this? Is there another way to check-in the documents via the SPforms JS framework?

Re: Related documents and required fields

Posted: 09 May 2019
by AlexZver
Hi!

Have you tried to check in the documents by this method: https://spform.com/javascript-framework ... ctionality

It happens automatically when you create a new item and all mandatory fields are filled in correctly.