0

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

1 Answer 1

0

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.