Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
Hi, instead of $('input') you should try to use Javascript API#getField(fieldId).
try to use below to get the value of the option selected
$('select').on('change', function() { alert( this.value ); });
Hi - thank you for your input. I tried both methods, but it wont fire... I would like to fire when the select box called "PONumber" changes value. in this example, I simply read the value of the iAmount and update "POImpact" accordingly.
<script>
$(getField("PONumber")).change( function(){
var iAmount = Number.parseFloat(FormUtil.getValue("Invoice_Amount").replace(/[^0-9\.-]+/g,""));
$('input[name="POImpact"]').val(iAmount);
});
$("PONumber").on('change', function() {
var iAmount = Number.parseFloat(FormUtil.getValue("Invoice_Amount").replace(/[^0-9\.-]+/g,""));
$('input[name="POImpact"]').val(iAmount);
});
</script>
It should be FormUtil.getField("PONumber") instead of just getField("PONumber")
Greetings - I have javascript question, so excuse the lack of programming language.
I am monitoring for text field changes and it works fine with the following snippet line: