Skip to main content
Nintex Community Menu Bar

Add new from a parent list to a child list

  • October 22, 2019
  • 9 replies
  • 42 views

naccarati
Forum|alt.badge.img+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

Simon Muntz
Nintex Partner
Forum|alt.badge.img+23
  • Nintex Partner
  • October 22, 2019
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

naccarati
Forum|alt.badge.img+5
  • Author
  • October 23, 2019

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


Simon Muntz
Nintex Partner
Forum|alt.badge.img+23
  • Nintex Partner
  • October 23, 2019

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)


naccarati
Forum|alt.badge.img+5
  • Author
  • October 30, 2019

404 page not found


naccarati
Forum|alt.badge.img+5
  • Author
  • October 30, 2019
Hi Simon,

I could not get the javascript to work. Not sure why.

naccarati
Forum|alt.badge.img+5
  • Author
  • October 30, 2019
Hello,

Did you try the javascript from the link above? I could not get it to work on premise.

Simon Muntz
Nintex Partner
Forum|alt.badge.img+23
  • Nintex Partner
  • October 30, 2019

Add a closing bracket to the end of above URL )


naccarati
Forum|alt.badge.img+5
  • Author
  • October 31, 2019
I'll try the closing bracket. Have you actually gotten this to work for on premise 2016?

Simon Muntz
Nintex Partner
Forum|alt.badge.img+23
  • Nintex Partner
  • October 31, 2019
No I have not attempted to do this