2 Replies Latest reply on Sep 14, 2009 10:36 AM by djkhalif

    <cfif value > another value>

    djkhalif Level 1

      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

        • 1. Re: <cfif value GT another value>
          djkhalif Level 1

          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

          • 2. Re: <cfif value GT another value>
            ilssac Level 5

            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.