Skip to main content
Nintex Community Menu Bar

Pre populate another list new form when drop down value changes in current list form

  • March 23, 2017
  • 6 replies
  • 18 views

Forum|alt.badge.img+2

Hi,

I have a list A which contains one drop down and the values are x, y and z. When Y is selected, I need to auto populate the new form from list B then I have to fill list B new form before submitting the list A form. 

Please help me out in achieving this!

Thanks,

Chaithra

6 replies

Forum|alt.badge.img+7
  • Nintex Partner
  • March 23, 2017

Hi, 

Use a JavaScript Modal Dialog containing a frame where the URL is the "New Item" one of list B.
And let this Modal appearing once you select a certain value from the Drop down.


Forum|alt.badge.img+16

Forum|alt.badge.img+2
  • Author
  • March 23, 2017

I found out the way to do this. It's working fine now. Thank you for the support!.


Forum|alt.badge.img+16

Excellent - can you detail your approach in case others have the same requirement please?


Forum|alt.badge.img+2
  • Author
  • March 23, 2017

Let's assume that my drop down ID is MyddlID
NWF$(document).ready(function(){

NWF$("#" +MyddlID).change(function(){
var obj = NWF$('#' + MyddlID + ' option:selected').val()

if(obj=="Y"){
javascript:SP.UI.ModalDialog.showModalDialog({ url:'list B url', title: 'B-New Item' });

}
});
});

And also here I have question: How to hide "Close button on the top-right of the page"?


Forum|alt.badge.img+7
  • Nintex Partner
  • March 23, 2017

Dear ‌,

Please take in consideration freezing the screen behind the Modal Dialog.

Regards,