Create New item in another library

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
User avatar
Roo
Posts: 107
Joined: Tue Oct 24, 2017

30 Nov 2017

I want to be able to create a new list item in another (sub) library from within the "master" library. Something like a button. Is this best done in SPD or from within form designer?

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

30 Nov 2017

Hello, Roo!
There are many ways to do it, including Workflows, MS Flows, JavaScript requests, etc. As for Forms Designer, easiest way to do it would be to use Related Items control which allows you to view another list or library from within the form.

You can create Items just like you would if you had the list opened, so it's not exactly the button, but it doesn't require much configuration at all. If you need to tie items to the current item, you can do that, but you can also skip this step if if this is not necessary. And if you are uploading documents to document library, it allows you to directly drag and drop them inside the control.
Cheers

User avatar
Roo
Posts: 107
Joined: Tue Oct 24, 2017

30 Nov 2017

Thanks for the link - Sorry I didn't know the terminology, so couldn't find it.

When creating an item can I pass the value of the parent field into the child list

ie: Parent list field name : "Supplier_x0020_Name"
Child list: "Contractor"

I was looking here, but it wasn't quite right: https://spform.com/related-items/inline ... point-form

Thanks

User avatar
Roo
Posts: 107
Joined: Tue Oct 24, 2017

01 Dec 2017

Having looked at some of the earlier Post I found this:

window.top.fd.field('Supplier_x0020_Name').value()

If this is the correct procedute
where and how do I update the child list value to this? I've already created the "Child form" I just need it to open with the value already entered.

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

01 Dec 2017

Hello, Roo!
Yes, I was about to write to you, this should work as long as parent form is opened in full-screen, not in dialog mode.
This script is placed on child form and when it opens, it opens in dialog mode, it goes to the window.top and accesses the parent form to retrieve values from there. You can then use this value to populate the child form where "Contractor" field can either be hidden or shown to the user, depending on your requirements.
Cheers

User avatar
Roo
Posts: 107
Joined: Tue Oct 24, 2017

01 Dec 2017

Thank Nikita - I'm slowly getting there so forgive me :)

When you say populate the contractor field - how do I go about this exacly? I've been trying a number of things, but I can't seem to get it right.

User avatar
Roo
Posts: 107
Joined: Tue Oct 24, 2017

01 Dec 2017

Ignore that dude - It did work - I put in the edit form not the new. Its been a long week!

Thank again - GREAT PRODUCT

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

01 Dec 2017

Excellent! If you'll need any other help with Forms Designer, let me know!
Cheers

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests