+ Start a Discussion
SainSain 

if i select any picklist value in custome field it has to popup related value on another customer field

Hi,

My requirement is if i select any picklist value in custome field it has to popup related value on another customer field.

Let me explaine in detail, i have two fields like medical procedure(picklist) and price field.  If i select any picklist value in medical procedure it has to be popup price field with related value.

Please share, Does anyone has some sample code or can point me in the right direction?
Many thanks!!!
Shyam BhundiaShyam Bhundia
Hi,

You can do this without code.  What you can do is have the price field as a formula field which sets the value based on the procedure value.  

Something like:

IF(Text(Procedure__c) == 'Procedure1', 100, 
  IF(Text(Procedure__c) == 'Procedure2', 200, 
   IF(Text(Procedure__c) == 'Procedure3', 300, 0)))


SainSain
Hi,

Yaa, it is only update after saved the record, but i want to update price field automatically once procedure value get select (it should happend before save).

thanks,
shaik

Shyam BhundiaShyam Bhundia
The only way this can be done is via a visualforce page.
Shabbir ShaikShabbir Shaik
Hi,

you can use Field Dependent Picklist values, It will work for you.

Try this...and if this helps, mark this as this as 'Best Answer'.