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
Heena ChauhanHeena Chauhan 

Is it possible using Trigger?

Hello Everyone,

I am creating a picklist field with 5 different values, where while adding the value, for each specific value I am adding a description in the decription field (which we get while adding a picklist value); In that description field, I need to add another field value and that should be displayed when user select a specific value from the pikclist dropdown, than in hover details, the user should be able to see the description data + the field value.

Example:
In Opportunity, when we select a value say "Closed Won" and if we hover the details for "Closed Won" than we should get the details as " You won this Opportunity on 17 May 2016".

So here 17 May,2016 is another field on Opportunity whoes details are displayed in the hover detail of stage field when user select a specific value.

Can someone please assist whether this is possible with the standard functionality or need a Trigger?

Thanks in advance!
Heena
Best Answer chosen by Heena Chauhan
Medhya MahajanMedhya Mahajan
Since help text is meta data, you cannot edit help text ( ie. add the date value to it )

However what you can do is. 

You can create a formula field which displays the stage name and when the user clicks on it you could show a pop up displaying your message.

The formula field will look something like this:

IF(ISPICKVAL(StageName , "Closed Won") , 
HYPERLINK ("javascript:alert('You won this opportunity on "& TEXT(ProSF__Date_Info__c) & "!');", "Closed Won", "_top") ,'')


Please mark as solved if this resolves your issue.

Regards
Medhya Mahajan
 

All Answers

Medhya MahajanMedhya Mahajan
Since help text is meta data, you cannot edit help text ( ie. add the date value to it )

However what you can do is. 

You can create a formula field which displays the stage name and when the user clicks on it you could show a pop up displaying your message.

The formula field will look something like this:

IF(ISPICKVAL(StageName , "Closed Won") , 
HYPERLINK ("javascript:alert('You won this opportunity on "& TEXT(ProSF__Date_Info__c) & "!');", "Closed Won", "_top") ,'')


Please mark as solved if this resolves your issue.

Regards
Medhya Mahajan
 
This was selected as the best answer
Heena ChauhanHeena Chauhan
Thank you so much Medhya. It worked!!!

Great!! and also thanks for quick response.

Cheers!!!