You need to sign in to do that
Don't have an account?

Grey the Input text field
I have used the disable value to disable my input text field. However, I would like it to be greyed out and then enable it based on a value picked in a picklist.
Is there a solution to that?
Thanks,
Sure is, with javascript
And in your doAction() method, you compare whatever is in getSelectValue() to decide if you want to enable the inputText, and call setDisabled(false);
I have two follow up questions
a. Is there a way to reRender one field in a form which has multiple input fields, and not mess the placement of the whole form. When I am just re- rendering the field in the form, the field moves from its orignal location to top of the page and outside the form?
b.Is there a way to grey the text box itself. When we disable the text box, it still appears as if it is enabled?
Thanks
I am not that familiar with using CSS. Do you have any tips in incorporating CSS for our input fields?
Thanks,
Anchal
Thank you. I appreciate your help,
Anchal