I know this isn't native functionality, but would it be possible to add tooltips for option set values through javascript or C# plugins?
All of the older posts I've seen have all said this isn't possible, but don't explore how to go about this through custom code. The closest thing I could find was this forum post which shows how to add tooltips to fields before it was implemented in CRM, but I'm still unsure how I would reference the specific option set values.
I'm not asking for fully fleshed out code, but if someone has any guidance on something I could try, I would greatly appreciate it.
Thanks!
*This post is locked for comments
Hi,
You can explore the option to create Custom PCF control to achieve your requirement.
Also check below gallery for any existing PCF already created by community member.
Hi, i have this same requirement, i have tried this and it does not work do you have an updated script?
Thanks for the help, but this didn't work when I tried it. I'm going to try and get the requirements changed hopefully.
Hi,
As you have already identified, there is no standard/ supported way to achieve this. You can however try below unsupported code and see if it works for you.
You need to change the below script as per your environment, fields, option set. You also need to register UpdateTooltip on form load
======================
var ownerShipCodeTooltip = [
{ value: "1", tooltip: "Select 'Public' for Public owned companies" },
{ value: "2", tooltip: "Select 'Private' for Privately owned companies" },
{ value: "3", tooltip: "Select 'Subsidiary' for subsidiaries" },
{ value: "4", tooltip: "If you are unsure, select 'Other'" }
];
function UpdateTooltip() {
try {
window.parent.$("#ownershipcode_i option").each(function (i) {
var currentValue = $(this).val();
if (currentValue != "") {
$(this).attr("title", ownerShipCodeTooltip[currentValue].tooltip);
}
});
}
catch (err) {
console.log("Error in UpdateTooltip" + err.message);
}
}
======================
** It is advisable to instead of using the unsupported code, try convince your client or modify the requirements to use supported way as this may not work in all the upcoming versions or update.
Hope this helps.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,228 Super User 2024 Season 2
Martin Dráb 230,056 Most Valuable Professional
nmaenpaa 101,156