Skip to main content
Nintex Community Menu Bar

Custom Script on O365

  • September 29, 2015
  • 10 replies
  • 15 views

Forum|alt.badge.img+6

Hi,

I am trying to set a default value to a list lookup using Custom Script but it is not working.

The script is as follows:

NWF$(document).ready(function()  {

NWF$("#" + ddlStaff).val('1'); 

} );

where ddlStaff is the Client ID JavaScript variable name set on the control.

Can anyone provide assistance?

Thanks

10 replies

Forum|alt.badge.img+6
  • Author
  • October 28, 2015

Thank you. This worked. Much appreciated.


Forum|alt.badge.img+6
  • November 5, 2015

Hi

Thank you.

I used the above code, Lookup item is getting selected but when i save the item the value is not getting saved.

Please help me on this?


Forum|alt.badge.img+6
  • Author
  • November 5, 2015

Hi,

Is the lookup control enabled on the form. I experienced scenarios that any controls on my form that were disabled were not saved.


Forum|alt.badge.img+6
  • November 5, 2015

Yes lookup Control is enabled on the form


Forum|alt.badge.img+6
  • November 5, 2015

Internet explorer version 11.0


Forum|alt.badge.img+6
  • November 5, 2015

Hi,

I included the above code, still the same issue.

Below is the screenshot of the console

138851_pastedImage_0.png


Forum|alt.badge.img+6
  • November 6, 2015

Hi

I have tested this in both IE 11.0 and Chrome 46.0. They are no errors in the Console.


Forum|alt.badge.img+6
  • November 6, 2015

Please find the attachment.


Forum|alt.badge.img+6
  • November 6, 2015

Nintex Version 2.6.0.0 for Sharepoint 2013 (on premise)

139229_pastedImage_0.png


Forum|alt.badge.img+6
  • November 9, 2015

Thansk a lot. Its working now.