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

BC forms the required* is ignored allowing empty submissions

New Here ,
Nov 01, 2013 Nov 01, 2013

Copy link to clipboard

Copied

BC forms the required* option is being ignored allowing empty submissions any ideas?

Views

856

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
Community Expert ,
Jan 19, 2014 Jan 19, 2014

Copy link to clipboard

Copied

LATEST

The following cfform code from htmlgoodies.com shows that the required attribute does actually work:

<cfform>

<p>

<label for="name">Name:</label><br />

<cfinput type="text" name="name" required="true" message="Please provide your name." />

</p>

<p>

<label for="email">Email Address:</label><br />

<cfinput type="text" name="email" required="true" validate="email"

message="Please provide a valid email address." />

</p>

<p>

<label for="message">Your Message:</label><br />

<cftextarea name="message" required="true" message="Please enter a message to send."/>

</p>

<cfinput type="submit" name="Submit" value="Send Message" />

</cfform>

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