Solved

cfinput type=t

Posted on 2009-05-12
15
139 Views
Last Modified: 2013-12-24
This tag is failing to validate in Coldfusion 8.  It was running on 7, now isn't working in 8.  Any ideas?


<cfinput required="yes" message="Last Name is Required"  name="lastname" type="text"  value="#t.lastname#">

Open in new window

0
Comment
Question by:NYGiantsFan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 5
  • 3
15 Comments
 
LVL 19

Expert Comment

by:erikTsomik
ID: 24367342
what is name of the query
0
 
LVL 19

Expert Comment

by:erikTsomik
ID: 24367346
what error do you get ?
0
 
LVL 52

Expert Comment

by:_agx_
ID: 24368180
There is nothing wrong with the code.  It works fine with CF8.  

It is probably a problem with your mappings.  The validation scripts are located in /CFIDE .  If that mapping does not exist, CF will not be able to find the scripts that perform validation.  So the validation will not fire.


<cfset t.lastName = "something">
<cfform method="post">
	<cfinput required="yes" message="Last Name is Required"  name="lastname" type="text"  value="#t.lastname#">
	<cfinput type="submit" name="submitButton">
</cfform>

Open in new window

0
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 

Author Comment

by:NYGiantsFan
ID: 24368184
object expected on this line

    if( _CF_hasValue(_CF_this['effectivedate'], "TEXT", false ) )

0
 
LVL 19

Expert Comment

by:erikTsomik
ID: 24368232
make sure that cfide mapping is created in CF administrator
0
 

Author Comment

by:NYGiantsFan
ID: 24368262
The mapping is created in the coldfusion 8 administrator.  I was able to go to the admin page from the main name.  

http://fe.mainwebsite.com/CFIDE/administrator/index.cfm
0
 
LVL 52

Accepted Solution

by:
_agx_ earned 500 total points
ID: 24368263
NYGiantsFan:

Open your browser and try and view this file:  (Replace 'localhost' with your server name)

          http://localhost/CFIDE/scripts/cfform.js

If you get an HTTP 404 (file not found) error, the problem is you are missing the /CFIDE mapping.

> make sure that cfide mapping is created in CF administrator

     Which is exactly what I just said.


0
 
LVL 52

Expert Comment

by:_agx_
ID: 24368277
>   if( _CF_hasValue(_CF_this['effectivedate'], "TEXT", false ) )

   Do you have a field named 'effectivedate' in your form?
0
 

Author Comment

by:NYGiantsFan
ID: 24368354
Yes...

<cfinput required="yes" message="Effective Date (E-Date) is Required (mm/dd/yyyy format)"  name="effectivedate" type="text" id="effectivedate" size="7" maxlength="15" validate="date">
0
 
LVL 52

Expert Comment

by:_agx_
ID: 24368369
What about the cfform.js file.  Does it exist?   Also, you are using an html form, yes?
0
 

Author Comment

by:NYGiantsFan
ID: 24368452
Yes, cfform.js exists in these locations:

c:\coldfusion8\wwwroot\cfide\scripts

and

c:\inetpub\wwwroot\cfide\scripts

Also, this is the form tag...

<cfform method="post" action="formp.cfm">
0
 
LVL 52

Expert Comment

by:_agx_
ID: 24368483
No, view it from a browser.   The physical file might exist, but you have to test the mapping. (ie what the browser sees).  That is what matters.
0
 

Author Closing Comment

by:NYGiantsFan
ID: 31580652
I remapped it in IIS and it works now.  Thanks.
0
 
LVL 52

Expert Comment

by:_agx_
ID: 24368602
NYGiantsFan,

Why the "B" grade? The problem was exactly what I said: the CFIDE mapping was wrong.
0
 
LVL 52

Expert Comment

by:_agx_
ID: 24371046
Good luck ..
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ColdFusion Rereplace 3 89
.htacess file 301 redirects that are strange 4 71
WEB Farm 6 79
Point a domain to a 4rd party web host without changing nameservers 2 48
In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question