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
Babar Hussain 4Babar Hussain 4 

Text filed should be disable/Hide

I had picklist on Lead object, If I select picklist value as "Other"  text field  should be required and show, For remaining picklist values text field should be disable or hide.

Note : Without visualforce method recommend other alternate options

User-added image
mukesh guptamukesh gupta
Hi Babar,

Only one way is that, you can display validation messgae on top of this box on Save button, for that you need to create validation rule.
ecause i have face same issue many time but i convince to client about the salesforce limitations.

other wise no solution in standard layout, 

if you need any assistanse, Please let me know!!

Kindly mark my solution as the best answer if it helps you.

Thanks
Mukesh
AnkaiahAnkaiah (Salesforce Developers) 
Hi Babar,

You can achieve this by using LWC component.

Refer the below link
https://salesforce.stackexchange.com/questions/367356/how-to-show-hide-a-field-based-on-picklist-value-in-lwc

You can't able to achieve this without customisation.

If you don't want coding then keep the text field in the UI and write validation rule like, If lead picklist value = other then make the text field as mandatory.

If this helps, Please mark it as best answer.

Thanks!!