How to Auto populate folder Name in list column in nintex column through using java script


Badge +5

Hello,

i have created a list . List Contains folders. List has nintex form.

When ever user click on folder , that folder name is populate into nintex form in one of the column.

Here i able to  get  the folder name, but i'm unable to save that folder name into nintex form filed.

below is the  code i have used.

$(document).ready(function() {

alert("hi");

var folder1 = "folder1";

$("input [title='Component']").val(folder1);  ===> here i'm facing the problem .

how to  auto populate the folder name into nintex forms field.

Could you please help me out .

Thanks,

Santhosh


5 replies

Userlevel 5
Badge +14

you have to assign a javascript variable in control's configuration dialog (eg. varFolderControl)

then you can assign a value to it like

NWF$('#' + varFolderControl).val(folder1)

Badge +5

thanks for your reply.

In the above example what is "varFolderControl". Is it control name?

For example:

form1.PNG

Do we need to change Name of the control to "varFolderControl"?

Thanks in advance,

Userlevel 5
Badge +14

no, you have to configure it at the very bottom of configuration dialog

Badge +5

Hi Marian,

It's working fine !!.

Thanks for the  solution. Great !!!

Regards,

Santhosh.

Userlevel 5
Badge +14

glad to hear.

consider marking the question answered.

Reply