Related documents and required fields

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
User avatar
Jens.Hetze
Posts: 22
Joined: Sat May 20, 2017

15 Jun 2017

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

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

16 Jun 2017

Hi Jens,
You can try to use SharePoint Designer workflow to check in a document when it is added.

ibarrandres
Posts: 23
Joined: Wed May 27, 2015

08 May 2019

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?

User avatar
AlexZver
Posts: 232
Joined: Mon Aug 27, 2018

09 May 2019

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.

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 14 guests