cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

I want to set column1(for ex) value into multiple coulmns while submitting the nintex form

Hi Emily Billing‌,

I have column (for ex column name is SupplierName) and I have a value in that field, I want to update same value in the multiple columns while submitting the request.

I wrote a function like below to update value in some other columns

function SupplierName(value) {
NWF$("#" + col2).val(value);

NWF$("#" + col3).val(value);

NWF$("#" + col4).val(value);

}

I can able to get the value from the suppliername filed by using below

value= NWF$("#" + SupplierName).val();

Now I want to know how can I call that function and pass the value to another fields

Thanks,

Jagadeeswar Reddy D. 

Labels: (1)
0 Kudos
Reply
2 Replies
Workflow Hero

Re: I want to set column1(for ex) value into multiple coulmns while submitting the nintex form

Hi,

Out of the box you can use calculated columns on SharePoint list to achieve this, but you will  not be able to change the calculated column values manually. Do you want to edit col2, col3, col4 values at later point time?

However, below is the script to achieve this, have this function call and definition in your Form Settings --> Custom Javascript section.

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

ctrlSupplierName = NWF$("#" + SupplierName);

//Bind change event to SupplierName control
ctrlVendors.change(populateOtherColumns);

});

function SupplierName() {

//get value of the suppliername control

var value = NWF$("#" + SupplierName);
NWF$("#" + col2).val(value);

NWF$("#" + col3).val(value);

NWF$("#" + col4).val(value);

}

Thanks,

Krishna.

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: I want to set column1(for ex) value into multiple coulmns while submitting the nintex form

Hi, is your problem solved?

0 Kudos
Accept as Solution Reply