Copy link to clipboard
Copied
Good afternoon all,
I would like to know, is this feasible?
<cfif FORM.StartUnits > FORM.EndUnits>
Starting Units cannot be larger than Ending Units. Please adjust your calculations!
</cfif>
Thanks in Advance,
DJ Khalif
Copy link to clipboard
Copied
I got this to work after placing it at the top of my action page:
<cfif FORM.StartUnits GT FORM.EndUnits>
<cflocation url="/errorPages/startunitsGTendunits.cfm">
</cfif>
If I could place this somewhere in my form to trigger before submitting then, I that would help me.
Thanks in Advance,
DJ Khalif
Copy link to clipboard
Copied
If you want anything to happen on the client before the client submits a request to the server, then you need to be using code that runs on the client.
Which is most often JavaScript. Not CFML which is only going to run on the server.