Set value to textbox on repeating section based on dropdownlist

  • 21 January 2021
  • 1 reply
  • 54 views


I am looking to set a text box value based on drop down list on repeating section and below is the code. I have achieved till populating the drop down value when adding rows but unable to assign value to text field.Need your help


NWF.FormFiller.Events.RegisterRepeaterRowAdded(function ()

{

var currRow = NWF$(arguments[0][0]);
currRow.find('.ddlAccessModulecssClass select').change(function(){repeatCableChanged(currRow.find('.ddlAccessModulecssClass select'));})});
function repeatCableChanged(cableLookup) {
bt1= cableLookup.val();
alert(bt1);
}

 

ddlAccessModulecssClass- Dropdown CSS class

displayMessagecssClass-Text field CSS class.


Thanks,

Nav

 

 

@Repeatsection


1 reply

Userlevel 5
Badge +14

Can you provide an example picture / screenshot so that I can get a better idea of what it is you're trying to accomplish? 

I think that you want the user to select from a Drop Down List: 

[Please Make A Selection]
[Selection 1]
[Selection 2]
[Selection 3]

and then, based on that selection, you'd like to populate a Multiline Text Field Control. 

If that's the case, then it should be a trivial thing to accomplish using a Rule or even a Calculated Control. But I'll need to know if this is right. 

Thank you.

Reply