NaveenKotla
Canvas Initiate

Set value to textbox on repeating section based on dropdownlist


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

Tags (1)
0 Kudos
Reply
1 Reply
MegaJerk
Automation Master
Automation Master

Re: Set value to textbox on repeating section based on dropdownlist

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.

0 Kudos
Reply