You need to sign in to do that
Don't have an account?
Krista Kelly
Pop-Up when Quote Expiry Date is in the past
Hi all,
I am creating a Visual Force page (added to layout) to show a pop-up with the CPQ Quote object loads but it's not actually doing anything. I only dabble in development so any advice is appreciated! Thank you! Here is the VF.
<apex:page StandardController="SBQQ__Quote__c">
<script> window.document.onload = new function(e)
{ if(!SBQQ__Quote__c.SBQQ__ExpirationDate__c < TODAY())
{ alert("Expiry Date is in the Past"); }
}
</script>
</apex:page>
As I cannot capture the "Submit or Approval" click without creating a custom button (as far as I can tell) and already have a Validation rule for when they edit the page this was a solution for any Quotes they do NOT edit before hitting "Submit for Approval".
I am creating a Visual Force page (added to layout) to show a pop-up with the CPQ Quote object loads but it's not actually doing anything. I only dabble in development so any advice is appreciated! Thank you! Here is the VF.
<apex:page StandardController="SBQQ__Quote__c">
<script> window.document.onload = new function(e)
{ if(!SBQQ__Quote__c.SBQQ__ExpirationDate__c < TODAY())
{ alert("Expiry Date is in the Past"); }
}
</script>
</apex:page>
As I cannot capture the "Submit or Approval" click without creating a custom button (as far as I can tell) and already have a Validation rule for when they edit the page this was a solution for any Quotes they do NOT edit before hitting "Submit for Approval".
Alain Cabon
You just need some brackets:
My test :