There isn't a way to require information as you would with other form types
in a cf grid - as far as I know... and as far as pre-filling the grid... you
can populate the grid, say with a list (from a query or what have you) by
using cfgridrow.

I recently did something similar... the first time the user entered the form
with the grid it was blank, then on the next page the values of the form
were stored in a WDDX packet... then when they went back to the form with
the cfgrid I used cfgridrow to populate the grid with their previous
entries.

good luck!
Jason Egan

-----Original Message-----
From: McCollough, Alan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 16, 2000 5:36 PM
To: CF-Talk
Subject: CF_GRID question


Hi, I've got a CF_GRID question, and not being a frequent CF_GRIDder, I
figger here is the place to ask!

I've got a CF_GRID in a form, and what I want to do is let the user select a
row in the grid. Easy enough. BuTtTt, how do I pass a 'default' value to the
CF_GRID tag, so that, say, the user's prior selection appears highlighted in
the grid?

And while I'm asking, is there some way to require a selection from the
CF_GRID, as you would with a <CFINPUT... required="yes"> ??

Alan McCollough
Web Programmer
Allaire Certified ColdFusion Developer
Alaska Native Medical Center

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
https://secure.houseoffusion.com

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
https://secure.houseoffusion.com

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to