Hi ,
I have a drop down with values new,change,close. And they are three sub forms also.Based selection of drop down the respective drop down needs to be visible and others need to be hidden .Initially all the sub forms are hidden from lay out .and i wrote the following script on change event of drop down but this is not working as expected.
if(this.rawValue!=null)
{
- app.alert("value is selected");
if (BankAccount.Page1.WorkArea.RequestType.ddRequestType.rawValue="New")
{
- app.alert("NEW");
- BankAccount.Page1.WorkArea.RequestType.NewRequest.presence="visible";
- BankAccount.Page1.WorkArea.RequestType.ChangeRequest.presence="hidden";
- BankAccount.Page1.WorkArea.RequestType.CloseRequest.presence="hidden";
}
elseif (BankAccount.Page1.WorkArea.RequestType.ddRequestType.rawValue="Change")
{
- app.alert("Change");
- BankAccount.Page1.WorkArea.RequestType.ChangeRequest.presence="visible";
- BankAccount.Page1.WorkArea.RequestType.NewRequest.presence="hidden";
- BankAccount.Page1.WorkArea.RequestType.CloseRequest.presence="hidden";
}
elseif(BankAccount.Page1.WorkArea.RequestType.ddRequestType.rawValue="Close")
{
- app.alert("Close");
- BankAccount.Page1.WorkArea.RequestType.CloseRequest.presence="visible";
- BankAccount.Page1.WorkArea.RequestType.NewRequest.presence="hidden";
- BankAccount.Page1.WorkArea.RequestType.ChangeRequest.presence="hidden";
}
}
else
{
- app.alert("You have to select any one of the request Type");
}
Please help me where i am going wrong!!
Thanks,
Bharathi.