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
Nagarjuna Reddy NandireddyNagarjuna Reddy Nandireddy 

how hide fields by picklist value....

hi all,
In Account object picklist called Rating..
in rating picklist when i select value called Hot than after save.
in detailed page i want to hide or read only for fields as 
Billing Street and Billing City.
no need any code.

please help for this.


regards,
Nandireddy Nagarjuna Reddy
Best Answer chosen by Nagarjuna Reddy Nandireddy
Medhya MahajanMedhya Mahajan
Hi Nagarjuna, 

If you do not wish to write a code, here's what you can do:
  1. Create a Record Type and Page layout ( with the two fields as read only).
  2. Create a WF rule that changes the record type of the record to this new one ( mentioned in step 1 ) when your rating = hot 
Mark solved if it resolved your issue.

Regards
Medhya Mahajan
 

All Answers

Medhya MahajanMedhya Mahajan
Hi Nagarjuna, 

If you do not wish to write a code, here's what you can do:
  1. Create a Record Type and Page layout ( with the two fields as read only).
  2. Create a WF rule that changes the record type of the record to this new one ( mentioned in step 1 ) when your rating = hot 
Mark solved if it resolved your issue.

Regards
Medhya Mahajan
 
This was selected as the best answer
Nagarjuna Reddy NandireddyNagarjuna Reddy Nandireddy
Thanx Medhya
vishnu Rvishnu R
Hi nagarjuna,

try this ..
write a account validation using the formula

IF(ISPICKVAL(Rating, 'Hot'),OR(PRIORVALUE(BillingStreet)!=BillingStreet, PRIORVALUE( BillingCity)!=BillingCity),false)

save it and test it properly after saving the record try to change the fileds which you are about to make read only.

please let us know if it helps .....

thanks 
vishnu Ramireddy