How to hide the premium from an agent in case view screen when status is Quotation
This was written for an agent scheme which is NOT 'auto OnCover' and Agents have to ask to put cases on cover.
The script stops the agent being able to see the premium while the case status is at quotation, once this has been moved to pending it will appear again.
document.observe('dom:loaded', function() {
if(window.location.pathname.toLowerCase() == "/schemeserve/policies/documentspage.aspx" || window.location.pathname.toLowerCase() == "/schemeserve/policies/casenotespage.aspx") {
if($("display_status").hasClassName("case-status-quotation"))
{
var RenewalElement = $("ctl00_ctl00_MainControls_ctl02_divPremiumForThisRecord");
RenewalElement.hide();
}
}
});Please sign in to leave a comment.
Comments
0 comments