Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

Help with this code please...

$
0
0

Hi All

 

I have a repeating row in a table (+\- button on each row to add / delete). On each row the user selects a value from a drop down (the dropdown list is populated from a JavaScript object literal if that makes any odds)

 

What I need to do is to check for duplicate drop down selections on different rows and warn the user they have selected a value twice.

 

I currently have this code in the change event of the dropdown which works great but for the first row only - how do I tweak it to work for every instance of the repeatable row 'FullRowSubForm'??

 

if (xfa.event.newText == form1.WorkforceDepSubForm.WorkforceLineSubform.FullRowSubForm.RepeatableRow.WorkforceRow1 .WorkforceNameTextField.rawValue)

{

    xfa.host.messageBox("WARNING you have already selected " + xfa.event.newText + "\n" + "\n" + "Only one instance of dependencies should be selected - please pick another dependency or delete.");

}


Thanks in advance

 

Ellis


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>