Questions and discussion about using ProcessMaker: user interface, running cases & functionality
By jackyjoy123
#828670
Hello,

I'm using a dropdown which load the informacion from a DB, this works just fine. With JS i'm showing the value of this dropdown but always show me the same value no matter which option i select.

This is the JS:
CODE: SELECT ALL
$(document).ready(function() {

$("#DRP_TIPO_FACTURACION").getControl().change( function() {
alert($("#DRP_TIPO_FACTURACION").getValue());
return false;
if$("#DRP_TIPO_FACTURACION").getValue() != 0 && $("#TXT_EMPRESA").getValue() != ''){
var q = $("#DRP_TIPO_FACTURACION").getValue()+'*-*'+$("#TXT_EMPRESA").getValue();
$.ajax({url: "/buscarServicios.php?q="+q, success: function(result){
alert(result);
}});
}
});
});

thanks
jackyjoy
By jackyjoy123
#828695
jackyjoy123 wrote: Fri Nov 20, 2020 9:24 am Hello,

I'm using a dropdown which load the informacion from a DB, this works just fine. With JS i'm showing the value of this dropdown but always show me the same value no matter which option i select.

This is the JS:
CODE: SELECT ALL
$(document).ready(function() {
https://krogerfeedback.nl https://talktosonic.onl https://talktowendys.vip https://whataburgersurvey.onl

$("#DRP_TIPO_FACTURACION").getControl().change( function() {
alert($("#DRP_TIPO_FACTURACION").getValue());
return false;
if$("#DRP_TIPO_FACTURACION").getValue() != 0 && $("#TXT_EMPRESA").getValue() != ''){
var q = $("#DRP_TIPO_FACTURACION").getValue()+'*-*'+$("#TXT_EMPRESA").getValue();
$.ajax({url: "/buscarServicios.php?q="+q, success: function(result){
alert(result);
}});
}
});
});

thanks
jackyjoy

thanks my issue has been fixed.

Thanks. Very useful. https://www.solarpanelinstal[…]

Thanks for the link, amosbatto! I was searching fo[…]

Hello Please can you help me with the place where […]

Hi there, I have 3.5.7, 3.8.1 and 3.8.2 versi[…]