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

How to create Validation Rule on Picklist to then fill in text field.
Hi I am new to Saleforce after many years.
I am trying to create a rule that if Stage in Opportunity is Partner then a partner name field pops up to type in.
Any advice on how to do this? I am back in the SF game and very rusty.
Thanks,
Nathalie
I am trying to create a rule that if Stage in Opportunity is Partner then a partner name field pops up to type in.
Any advice on how to do this? I am back in the SF game and very rusty.
Thanks,
Nathalie
You need to create a validation rule on Opportunity. Follow the below steps:
- Go to Setup -> App setup -> Customize -> Opportunity -> Validation Rules, click Validation rules
- Click New button
- Enter any rule name
- In the Error condition formula, enter the following formula: IF( AND( ISPICKVAL( StageName, 'Partner' ), ISBLANK( Partner_Name__c ), true, false )
- Enter the error message and save the rule.
You need to replace the field API name as per your data model. Let me know, if you need any help.Thanks,
Neetu
All Answers
Sound like you need to have a custom VF page. You would need to write some javascript to hide/show the field based on the Stage field value. Standard page layouts dont let you show or hide fields on conditions.
You need to create a validation rule on Opportunity. Follow the below steps:
- Go to Setup -> App setup -> Customize -> Opportunity -> Validation Rules, click Validation rules
- Click New button
- Enter any rule name
- In the Error condition formula, enter the following formula: IF( AND( ISPICKVAL( StageName, 'Partner' ), ISBLANK( Partner_Name__c ), true, false )
- Enter the error message and save the rule.
You need to replace the field API name as per your data model. Let me know, if you need any help.Thanks,
Neetu
I can help you with the tutorials or guidance regarding this. You can contact me either on my gmail id neetu.bansal.5@gmail.com or Skype Id neetu.bansal.5
If my post helps you, you can mark it as best answer so it will help others in future.
Thanks,
Neetu
your validation rule is syntax error when i have try do can not save, try is ..
If( AND (ISPICKVAL( StageName,'Prospecting'), ISBLANK( OrderNumber__c)),true,false)