Custom Script on O365

  • 29 September 2015
  • 10 replies
  • 4 views

Badge +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

Badge +6

Thank you. This worked. Much appreciated.

Badge +6

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?

Badge +6

Hi,

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

Badge +6

Yes lookup Control is enabled on the form

Badge +6

Internet explorer version 11.0

Badge +6

Hi,

I included the above code, still the same issue.

Below is the screenshot of the console

138851_pastedImage_0.png

Badge +6

Hi

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

Badge +6

Please find the attachment.

Badge +6

Nintex Version 2.6.0.0 for Sharepoint 2013 (on premise)

139229_pastedImage_0.png

Badge +6

Thansk a lot. Its working now.

Reply