Domanda

I am trying to pull in the text from a Drop Down field on my Nintex Form into a single line text box within the same Nintex Form. Is there a custom JavaScript code that can be written to accomplish this?

Here is what is a visual:

enter image description here

È stato utile?

Soluzione

You have set the JS ID(Client ID in JavaScript variable) for the dropdown and textbox field, then use the code like below to achieve it.

NWF$(document).ready(function(){
    NWF$('#' + JSID1).change(function(){
        var selection = NWF$('#'+JSID1);
        NWF$('#' + JSID2).val(selection.val());
    });  
});

The following articles for your reference.

Button to Set Field Value (JS)

How to retrieve the values from the drop down control

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange
scroll top