naccarati
Workflow Hero

Add new from a parent list to a child list

Hello,

This is a parent/child list question. Is it possible in Nintex forms to have a button on the parent form that when clicked adds items to a child list and take some of the fields from the parent list and put that data into the each item in the child list.  I know we can do it with a workflow, but then there's the delay while the workflow runs to create the items in the child list.  A button would be fantastic.  Has anyone done this with Nintex Forms?

0 Kudos
Reply
9 Replies
SimonMuntz
Nintex Employee
Nintex Employee

Re: Add new from a parent list to a child list

Hi,
The Form is associated with a list content type so it can only add/update items for the content type of that list.

I have seen a thread where a user put a button on a form that when pressed creates items. It is for O365 but the same concept could be used for on-premise.
https://community.nintex.com/t5/Nintex-for-Office-365/Create-a-list-item-from-nintex-form-JavaScript...
0 Kudos
Reply
naccarati
Workflow Hero

Re: Add new from a parent list to a child list

Hi Simon,

I tried to implement the javascript from the link provided, but it's not working. It looks like it's doing something when you click the button. But it's not creating a new record. This would be a great solution for us. Any ideas on what might be going on or what to check?createnewitem.JPG

0 Kudos
Reply
SimonMuntz
Nintex Employee
Nintex Employee

Re: Add new from a parent list to a child list

Hi,
The script is for O365.

Here is the MSDN page for On-premise JS to do this.

https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/hh185011(v%3Doff...)

0 Kudos
Reply
naccarati
Workflow Hero

Re: Add new from a parent list to a child list

404 page not found

0 Kudos
Reply
naccarati
Workflow Hero

Re: Add new from a parent list to a child list

Hi Simon,

I could not get the javascript to work. Not sure why.
0 Kudos
Reply
naccarati
Workflow Hero

Re: Add new from a parent list to a child list

Hello,

Did you try the javascript from the link above? I could not get it to work on premise.
0 Kudos
Reply
SimonMuntz
Nintex Employee
Nintex Employee

Re: Add new from a parent list to a child list

Add a closing bracket to the end of above URL )

0 Kudos
Reply
naccarati
Workflow Hero

Re: Add new from a parent list to a child list

I'll try the closing bracket. Have you actually gotten this to work for on premise 2016?
0 Kudos
Reply
SimonMuntz
Nintex Employee
Nintex Employee

Re: Add new from a parent list to a child list

No I have not attempted to do this
0 Kudos
Reply