Link to home
Start Free TrialLog in
Avatar of rccscalum
rccscalum

asked on

Populating a cftextarea with a value of a radio button / using a Oracle DB

I'm creating a form.  A user selects a radio button and then inputs information related to the radio button he/she selects into the cftextarea.

When a user comes back to the form, if a radio button has been already selected, the radio button is checked and the cftextarea has the information the user inputted for that particular radio button (cftextarea would then be disabled).

I have the radio button function working, but how can I display the stored information in the oracle database into the cftextarea?  And have it so, that if the user selects a none disabled radio button, the user will have a non disabled cftextarea to input information.

The <cfquery's> and the <cfif's> may be a bit clunky.  I'm learning!!!!!
val.txt
Avatar of erikTsomik
erikTsomik
Flag of United States of America image

just do this
#queryname goes here.fieldname#
Avatar of rccscalum
rccscalum

ASKER

Would I have to do any  so if someone selects a none-disabled radio button they would have an empty

For example I was doing this.



#val_hits1.val#





But that didn't work.  It kept the value of #val_hits1.val# in the   It didn't change when I selected another radio button.

Hopefully I'm explaining it clearly enough.
ASKER CERTIFIED SOLUTION
Avatar of erikTsomik
erikTsomik
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
That didn't seem to work.
what error do you get
It just didn't display the value in the
a you sure there is a value in the db
Yes,  with this:



#val_hits1.val#


I get TEST as the value in the text box.
ok what is the question then , it does disaply the value
The problem is I have 6 radio buttons.

Say I select the radio button for "POC" and then I fill in information in the text box.

I go back to the same form, and now the radio button for "POC" is disabled, I have to choose one of the other 5.

The problem/question is....

Ahh...wait, I just had a brain fart.......rethinking my approach to this.

Thanks for the help.  Sorry to waste your time.
Thanks and also that was a ColdFusion question, Can you sent a request to the support to transfer this points to the coldfusion zone. Thank you