Reputation: 10115
I have below code in ColdFusion.
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<cfform id="form1" name="form1" method="post">
<cfquery name="config" datasource="config">
SELECT DISTINCT ColumnName
FROM tablename
</cfquery>
<cfinput name="ColumnName"
type="text"
autoSuggest="#valueList(config.ColumnName)#"
typeahead="true"
size="40"
placeholder="ColumnName"/><br>
</cfform>
</body>
</html>
Problem occurs at this line: autoSuggest="#valueList(config.ColumnName)#"
Below are the errors in console. Am I missing anything?
Upvotes: 4
Views: 1038
Reputation: 10115
As per official page of Adobe ColdFusion 2016, I will have to download js and css manually for yui from here
Relevant information from the linked article:
YUI and Spry
We have deprecated YUI and Spry libraries in ColdFusion 2016 (Update 3) and removed the following JavaScript libraries:
<cfusion_webroot>\cf_scripts\scripts\ajax\yui
<cfusion_webroot>\cf_scripts\scripts\ajax\spry
<cfusion_webroot>\cf_scripts\scripts\ajax\resources\yui
As a result, the following tags that use the YUI and Spry features would be impacted:
- cfmenu
- cftree
- cftooptip
- cfcalendar
- cfinput (autosuggest attribute)
- cfinput (sourcefortooltip attribute)
- cfsprydataset
As a workaround, you can manually download the removed files from the following locations and copy them in ColdFusion's webroot, at the directories listed above.
Upvotes: 5