Add new from a parent list to a child list

  • 23 October 2019
  • 9 replies
  • 18 views

Badge +5

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?


9 replies

Userlevel 6
Badge +22
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/m-p/101703
Badge +5

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?5051i55C007511BB86816.jpg

Userlevel 6
Badge +22

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%3Doffice.14)

Badge +5

404 page not found

Badge +5
Hi Simon,

I could not get the javascript to work. Not sure why.
Badge +5
Hello,

Did you try the javascript from the link above? I could not get it to work on premise.
Userlevel 6
Badge +22

Add a closing bracket to the end of above URL )

Badge +5
I'll try the closing bracket. Have you actually gotten this to work for on premise 2016?
Userlevel 6
Badge +22
No I have not attempted to do this

Reply