function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Aniruddha VashishtheAniruddha Vashishthe 

All input fields disabled till I select some value from a picklist.

I have a form in visualforce page.This form have some input text,picklist,radio buttons.
I have some values in a pick list.efault picklist value on page load is None. On selecting a value from this pick list the values from a salesforce record get filled in the input text,radio buttons,etc.
Now what I am looking for is that the input fields radio button and all should be disabled till the selected value of my picklist is set to none.
Can anyone provide me some solution for the problem?

Thanks in advance
Paras_BhattParas_Bhatt

Hi Anniruddha,

We dont have disabled attribute on the apex:Input field.

What can i suggest is, It seems like you are already using VF page, thus you can load the page with another output pannel, the panel will display all the fields as output fields. (Your original panel with inputfields will be not visible upto this point )

Now as soon as the user selects picklist values, the render condition for both the output pannels will flip, and your pannel with inputField will start rendering.

Let me know if that helps.

Thanks and Regards,

Paras Bhatt