We help IT Professionals succeed at work.

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

191 Views
Last Modified: 2013-12-16
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
Comment
Watch Question

erikTsomikSystem Architect, CF programmer

Commented:
just do this
#queryname goes here.fieldname#

Author

Commented:
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.
System Architect, CF programmer
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
That didn't seem to work.
erikTsomikSystem Architect, CF programmer

Commented:
what error do you get

Author

Commented:
It just didn't display the value in the
erikTsomikSystem Architect, CF programmer

Commented:
a you sure there is a value in the db

Author

Commented:
Yes,  with this:



#val_hits1.val#


I get TEST as the value in the text box.
erikTsomikSystem Architect, CF programmer

Commented:
ok what is the question then , it does disaply the value

Author

Commented:
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.
erikTsomikSystem Architect, CF programmer

Commented:
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
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.