|
|
English
Home >
Flash News > Bindings to the rescue: Changing an input label
|
 |
|
|
|
Bindings to the rescue: Changing an input label
|  |  |  |
Printer version
By As Fusion http://www.asfusion.com/blog/
I just read this post by Paul Roberston, Dynamically change a cfinput form field’s label. I agree that the way the input is generated into mxml does not make it easy to access the label. However, I think there is a simpler solution to the problem. Granted, this solution does not give you a “direct” pointer to the label, but it does change the label as needed.The key change is that instead of separating the label and the field, you can use the label property of the input and a binding. He also makes the input appear and disappear depending on the dropdown selection. That too, can be done with a binding.
The complete code:
Department Account
Purchase Order
Check
Credit Card
Live example
Download the source
Read the complete article here
(Added: 10-28-2005, Hits: 0, Rating: 0.00, Votes: 0, Reviews: 0)
Add to Favorites Suggest to a Friend
|
|
|
 |
 |


|
|
|
|
|
|