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
palakwaipalakwai 

{!Opportunity.Id} Truncated

I have some Java Script behind a button that is trivial. The below reproduces the behavior:
 
Code:
function ShowId(showthis)
{
        alert(showthis);
}

ShowId("Opportunity ID={!Opportunity.Id}");

 
For some odd reason the Opportunity ID is truncated for selected Opportunities. For example, if I have an Opportunity with Id = "00600000007YFgYAAW" what shows in the alert is "Opportunity ID=00600000007YFgY"
 
Others show the full Id without problem.
 
Any thoughts?