Redirect to (second) edit form in document library

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
dejan.lamovsek
Posts: 17
Joined: Fri Oct 27, 2017

23 May 2018

Hello guys,

We have few problems to solve and unfortunatelly running out of ideas.

Environment:
SharePoint 2016 on-prem
SPFORM v.3.1.4
Related items with document library as a parent, and two lists as child and grandchild.

To explain: We would like to use one form to set some necessary fields and save them so when editing child and grandchild items in second form we can use those values.

We have a document library where the first problem appears. The new form is not used here, because when we upload the document, SharePoint goes directly to edit form. Second, the edit form opens in dialog box, which disables redirecting to other form. Is there a way to open new form when uploading and if possible not in dialog box?

The other major problem we have is with content type. Since we can't use new form, we try to solve the problem with the content type, so we start with one content type when uploading, and then change it to other to get different form. We tried changing content type with workflow which works fine but as in other post mentioned, the redirect to other form is too fast and the change of content type is not set yet. Users must then open items from list/document library.
We also tried to change content type with the javascript but also ran to a problem, because the save button closes the form before the form reloads.

Used javascript:
// getting the SELECT element
var contentType = fd.field('ContentType').control()._el().find('select');

// setting the second type
contentType.find('option').eq(1).prop('selected', true);

// reloading the form
contentType.change();

Thanks in advance,
Bye, Dejan

User avatar
Nikita Kurguzov
Posts: 889
Joined: Mon Jul 03, 2017

23 May 2018

Dear Dejan,
That's a lot of information and we would love to help, but can you tell us first and foremost what is the goal that you try to achieve here?
Cheers

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 19 guests