• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

<cfif value > another value>

Participant ,
Sep 14, 2009 Sep 14, 2009

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

TOPICS
Advanced techniques

Views

533

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Sep 14, 2009 Sep 14, 2009

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Sep 14, 2009 Sep 14, 2009

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation