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
Web Development SoftwareJavaScriptColdFusion Language

Avatar of undefined
Last Comment
erikTsomik

8/22/2022 - Mon
erikTsomik

just do this
#queryname goes here.fieldname#
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
erikTsomik

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
rccscalum

ASKER
That didn't seem to work.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
erikTsomik

what error do you get
rccscalum

ASKER
It just didn't display the value in the
erikTsomik

a you sure there is a value in the db
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
rccscalum

ASKER
Yes,  with this:



#val_hits1.val#


I get TEST as the value in the text box.
erikTsomik

ok what is the question then , it does disaply the value
rccscalum

ASKER
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.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
erikTsomik

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