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

picklist value display

Hi Everyone,
 I have one requirement, I need to display text field based on picklist value selected.
Picklist values : New Contract, SOW/Amendment, Contract Renewal.
Field : Icertis Contract Number

Please anyone knows send the formaula or validation rule, which one to use, If possible please right the validation/ formaula for above reuirement, 
Thanks
 
SubratSubrat (Salesforce Developers) 
Hello Babar ,

To display a text field based on a picklist value selected, you can use a formula or validation rule in Salesforce. Here's an example of how you can achieve this using a validation rule:

Validation Rule:
AND(
  ISPICKVAL(Picklist_Field__c, "New Contract"),
  ISBLANK(Icertis_Contract_Number__c)
)
Explanation:
This validation rule checks if the picklist field "Picklist_Field_c" has the value "New Contract" selected and if the "Icertis_Contract_Number_c" field is blank. If both conditions are true, the validation rule will trigger, preventing the record from being saved until the Icertis Contract Number field is populated.

Note: Replace "Picklist_Field_c" with the API name of your picklist field and "Icertis_Contract_Number_c" with the API name of your Icertis Contract Number field in the validation rule formula, according to your Salesforce configuration.

If this Helps , please mark this as Best Answer.
Thank you.
Arun Kumar 1141Arun Kumar 1141
Hi Babar,

You can check the below links to display field based on the picklist value selected
https://salesforce.stackexchange.com/questions/101208/how-to-hide-show-the-fields-based-on-picklist-value
https://developer.salesforce.com/forums/?id=906F000000098qrIAA

Mark this as best answer if this helps.
Thanks