This topic is locked

how to make field required

1/18/2012 8:06:05 AM
PHPRunner General questions
J
jura author

hello,
i have these code:

***
// hide control

var ctrl = Runner.getControl(pageid, 'oib');

ctrl.hide();
var ctrlCountry = Runner.getControl(pageid, 'vrsta');

var ctrlState = Runner.getControl(pageid, 'oib');
ctrlCountry.on('change', function(e){

if (this.getValue() == 'company'){

ctrlState.show();
}else{
ctrlState.hide();
}
});

**
When user select from drop down list value 'company' field 'oib' is show up, How to set up field 'oib' required
Thanks
PHPRunner 6.0 9824