Hello, I've been working witht the new flash forms and I got most everything
working except for binding cfgrid values to input types other than text. I'd
like to display the details of the selected row of a grid in a form. Using the
examples in the documentation I was easily able to do this using the bind
attribute of the <cfinput> tag. <cfquery name='list'> SELECT userID,
firstName, lastName, email1, active FROM users </cfquery> <cfgrid
name='users' query='list' rowheaders='false'> <cfgridcolumn name='userID'
header='UID'> <cfgridcolumn name='firstName' header='First Name'>
<cfgridcolumn name='lastName' header='Last Name'> <cfgridcolumn
name='username' header='Username'> <cfgridcolumn name='email1'
header='Email'> </cfgrid> <cfinput type='hidden' name='userID'
value=''
bind='{users.dataProvider[users.selectedIndex]['userID']}'
onChange='users.dataProvider.editField(users.selec tedIndex, 'userID',
userID.text);' > <cfinput type='text' name='username'
label='Username:' required='yes'
message='Please enter a username' size='25'
maxlength='45'
bind='{users.dataProvider[users.selectedIndex]['username']}'
onChange='users.dataProvider.editField(users.selec tedIndex, 'username',
username.text);' > Etc. - All the above works fine... BUT! How do I
do the following? <cfformgroup type='horizontal' label='Active'>
<cfinput type='radio' name='active'
value='1' label='Yes' bind=''
onChange='' required='true'
message='Please set the status of this user.' >
<cfinput type='radio' name='active'
value='0' label='No' bind=''
onChange='' required='true'
message='Please set the status of this user.' >
</cfformgroup> In other words, I want the radio button with value 1 to be
checked when the value of the 'active' field designated by the currently
selected cfgrid row is 1 and the other one to be checked when the value is 0.
Normally, I would do this like so... <cfformgroup type='horizontal'
label='Active'> <cfinput type='radio' name='active' value='1'
label='Yes' checked='#IIF(active is 1, DE('true'), DE('false'))#'>
<cfinput type='radio' name='active' value='0' label='No' checked='#IIF(active
is 0, DE('true'), DE('false'))#'> </cfformgroup> But I don't know what
to bind active to using the flash grid. I hope this makes sense! Thanks for
any help or advice.