I have a ColdFusion condition like this:
<cfif txtTaxFileNo neq "">
<script>
alert("NPWP Already Exist");
history.back();
</script>
<cfabort>
</cfif>
Assume txtTaxFileNo
has a value of "123" in the previous page. How can I empty the txtTaxFileNo
field? I already tried this:
<cfif txtTaxFileNo neq "">
<script>
alert("#JSStringFormat('NPWP Already Exist')#");
history.back();
txtTaxFileNo.value = "";
</script>
<cfabort>
</cfif>
However, the textfield on the previous page is not empty. It still has a value of "123". Thanks in advance.