Pop-up response input not immediately changing value in a field after clicking OK
I have a read-only field with the 3 of 9 barcode font to accept input from a pop-up response window. When you click on the barcode field, the response window does pop up and accepts the input value, but when clicking on OK, the barcode does not change. Only when another action is taken afterward does the barcode change. I have the script below in the Mouse Up action of the barcode. How can I have it change the moment you click OK?
var cRtn = app.response("Please enter barcode number", "Barcode");
if(cRtn != null)
{
this.getField("txtBarCode").value="*" + cRtn + "*";
}