This topic is locked
[SOLVED]

 Control next date field on search page

7/19/2019 2:54:02 AM
PHPRunner General questions
R
Rigmantas author

Hi, can you help me on search page JavaScript on load page. I want to control date field. On one i have do it:

var ctrlCheck= Runner.getControl(pageid, 'date');

ctrlCheck.on('change', function(e){

alert(this.getValue(ctrlCheck));

});



My problem is: when i choose "between" and i need to control next field of date. I test date1, date_1 but can't found true way. Thanks

Regards

Rimantas

R
Rigmantas author 7/22/2019
var ctrlCheck1= Runner.controls.ControlManager.getAt(false, 1, 'datai',1);

ctrlCheck1.on('change', function(e){

alert(this.getValue(ctrlCheck1));

});


Thanks