Hi,
Can someone please help me? I want to create a dropdown with text field disable when nothing is selected from the list.
Example: They have to select 1 in my dropdown list before they can be able to type in the next field. if nothing is selected the text field will be grayed out or disabled.
Thanks,
if (this.selectedIndex == 2){
TextField1.presence = 'visible';
TextField1.mandatory = "error";
TextField1.mandatoryMessage = "This field is mandatory!";
}
else {
TextField1.presence = 'hidden';
TextField1.mandatory = 'disabled';