G'day
I'm very new to LiveCycle and teaching myself to create forms
I have a drop down box in a subform requesting information. Depending on the information required certain text boxes will appear (using switch case script) dateFrom dateTo dateCourt txtOther
When I add a new instance of this subform the list appears correctly in the drop down box but when the item is selected the text boxes do not appear at all.
I am probably missing something fundamental. Any ideas
Cheers
//cboInfoRequired
RFI.InfoRequested.Info.cboInfoRequired::exit - (JavaScript, client)
switch(RFI.InfoRequested.Info.cboInfoRequired.rawValue){
case "Info A":
RFI.InfoRequested.Info.dateFrom.presence = "visible";
RFI.InfoRequested.Info.dateTo.presence = "visible";
RFI.InfoRequested.Info.dateCourt.presence = "hidden";
RFI.InfoRequested.Info.txtOther.presence = "hidden";
break;
case "Info B":
RFI.InfoRequested.Info.dateFrom.presence = "hidden";
RFI.InfoRequested.Info.dateTo.presence = "hidden";
RFI.InfoRequested.Info.dateCourt.presence = "visible";
RFI.InfoRequested.Info.txtOther.presence = "hidden";
break;
case "Info C":
RFI.InfoRequested.Info.dateFrom.presence = "hidden";
RFI.InfoRequested.Info.dateTo.presence = "hidden";
RFI.InfoRequested.Info.dateCourt.presence = "hidden";
RFI.InfoRequested.Info.txtOther.presence = "visible";
break;
case "Info D":
RFI.InfoRequested.Info.dateFrom.presence = "hidden";
RFI.InfoRequested.Info.dateTo.presence = "hidden";
RFI.InfoRequested.Info.dateCourt.presence = "hidden";
RFI.InfoRequested.Info.txtOther.presence = "hidden";
break;
}
//cmdAdd
RFI.InfoRequested.AddInfo.cmdAdd::click - (JavaScript, client)
RFI.InfoRequested.Info.instanceManager.addInstance(1);