This topic is locked

JaVaScript Onload event

1/27/2021 7:18:06 AM
PHPRunner General questions
I
Ivan van Oosterhout author

Hi,
I need a help with this.
Two options to choose from, 8 mm or 10 mm. But the need to be the same.

and extra option is, Do not save the row, return False.
var ctrlAEH = Runner.getControl(pageid, 'S1AEH');

var ctrlAEH2 = Runner.getControl(pageid, 'S2AEH');

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

if (this.getValue() == '8 mm' && ctrlAEH2.getValue() == '10 mm'){

swal("Not the same length!", "Choose the same Length.", "error")

}

});