Phillip,

To prepopulate the form elements of the Flash Form, you'd have to use 
the 'value' attribute of your various form tags:

<cfinput type="text" name="FirstName" value="#REQUEST.myQuery.FirstName#" />

You cannot use JavaScript to populate or validate a Flash Form. You can 
use ActionScript to validate a Flash Form, as outlined in this post from 
Ray:

http://www.coldfusionjedi.com/index.cfm/2005/9/20/Ask-a-Jedi-Flash-Form-Custom-Validation

Steve "Cutter" Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer

Co-Author of "Learning Ext JS"
http://www.packtpub.com/learning-ext-js/book
_____________________________
http://blog.cutterscrossing.com

Steve "Cutter" Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer

Co-Author of "Learning Ext JS"
http://www.packtpub.com/learning-ext-js/book
_____________________________
http://blog.cutterscrossing.com


On 9/9/2009 11:21 PM, Phillip Vector wrote:
> I get that value is not a part of the cfinput if the cfform is set to flash.
>
> So how do I populate the form with the values from the query I have set up?
>
> Right now, I have..
>
>                       <cfform format="flash" width="100%" height="300" 
> method="post"
> action="#myself#CalendarAdmin.UpdateInfo">
>                               <cfformgroup type="tabnavigator">
>                                       <cfformgroup type="page" label="Main 
> Information">
>                                               <cfinput label="Notes:" 
> name="Note" type="text" required="false"
> message="" id="Note" size="50" value="#AllConventions.Note#" />
>                                       </cfformgroup>
>                               </cfformgroup>
>                       </cfform>
>
> A cfdump shows AllConventions has 1 record. So how do I prepopulate the field?
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326191
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to