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

cfinput required="yes" not working

Participant ,
Feb 02, 2016 Feb 02, 2016

Copy link to clipboard

Copied

Hello,

my coldfusion application runs in Intranet  and  Internet (https://www.xxx.com/inputform.cfm)

When I open my CF-Page from Internet,  server side validation does not work.

No popup comes to tell that the required form field isn't filled out.

When I run the CF-Page as an internal Intanet application (http://servername/inputform.cfm)

the validation works fine.

Here is an example of an

<cfinput name="catalog" type="text"   required="Yes" message="Catalog is required" >

Is https protocol the reason?

Best regard

Claudia

Views

854

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

correct answers 1 Correct answer

Advocate , Feb 02, 2016 Feb 02, 2016

Fist guess, the CFIDE virtual directory is not configured for your external site. This directory contains a scripts folder that houses the JS files that the client-side CF validation requires. Next guess would be a JS error is being triggered, preventing the validation. Try running a client side debugging tool like Firebug in Firefox or the IE programmer tools. Either will point out the issue(s) of missing files or JS exceptions.

Lastly, I recommend getting away from using CFFORM, CFINPUT, etc.,

...

Votes

Translate

Translate
Advocate ,
Feb 02, 2016 Feb 02, 2016

Copy link to clipboard

Copied

LATEST

Fist guess, the CFIDE virtual directory is not configured for your external site. This directory contains a scripts folder that houses the JS files that the client-side CF validation requires. Next guess would be a JS error is being triggered, preventing the validation. Try running a client side debugging tool like Firebug in Firefox or the IE programmer tools. Either will point out the issue(s) of missing files or JS exceptions.

Lastly, I recommend getting away from using CFFORM, CFINPUT, etc., for client-side validation. Use the native form and input tags and  Incorporate something like jquery validation. It's much more state-of-the-art and gives you much more control over the user experience.

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