I have a flag on Accounts for Partnerships and want to show a custom badge near the name of the record, in a similar way to Converted Leads.
I was able to get this done in a very roundabout way, which I am pretty sure is not the right way... so I am wondering what the right way is.
This is what I did:
created a non-db field in the Accounts vardef
added the non-db badge field to the record view on account
extended the record view to set the field based on the partnerships flag both on change and when the field values are retrieved for display.
This works fine when loading the record, and when setting/unsetting the flag I can see the badge appear/disappear.
But when setting the badge, after the save is complete, the badge disappears and only comes back if I reload the record.
I tried a few things like re-rendering after the save is complete, reloading the model etc... but to no avail, and the more I try to get around this, the more I'm convinced it's not the right way to do this...
Can anyone shed some light on how badges actually work?
Thanks,
FrancescaS