Dear All,
I have placed the code below in the Javascript OnLoad event. When I make changes to the title, it hides my GivenName field but if I chose "Bishop" the GivenName field is not showing. May I know where is my mistake. I copied this code from the PHPRunner manual and just make changes to the field nam. Also how do I show on screen the value of (this.getValue()). I used the alert command but still nothing appears on the screen (alert(this.getValue()).
var ctrlTitleID = Runner.getControl(pageid, 'TitleID');
var ctrlGivenName = Runner.getControl(pageid, 'GivenName');
//var ctrlState = Runner.getControl(pageid, 'state');
ctrlTitleID.on('change', function(e){
if (this.getValue() == "Bishop"){
ctrlGivenName.show();
}else{
ctrlGivenName.hide();
alert (this.getvalue());
}
});
Thank you in advance for your help.
Regards
Danny