Forum Discussion
JohnThomas
8 years agoQrew Cadet
Just write a if else condition, Just modifying the code
var numdua = prompt("Type in the number: "); if(numdua == null){ alert("No Data"); // there will be no value entered to the record }else{
var promise = $.get(gReqDBID,{
act: "API_EditRecord",
rid: QBU_rid, _fid_8: numdua });