'Asy' is a dropdown field. When user select '3', 'Cell' another dropdown field changes to 'TST', and 'Priority' dropdown field changes to 99.
Code: Select all
document.observe('dom:loaded', function() {
$('Asy').observe('change', function() {
if($F('Asy') == 3){
$('Cell').value = 'TST';
$('Priority').value = 99;
$('Asy').focus();
}
});
});
Code: Select all
jQuery(function(){
jQuery('#Asy').on('change', function() {
if(jQuery('#Asy').val() == 3){
alert('detected'); // pop up if Asy change to '3'
jQuery('#Cell').val('TST'); // not working for dropdown but works if change to input
jQuery('#Priority').val(99); // not working for dropdown but works if change to input
jQuery('#Asy').focus();
}
});
});
Perhaps a tutorial similar to http://bigprof.com/appgini/help/advance ... agic-files would be very helpful.
Thank you.
Weoi