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
ABRAR-UL-HAQABRAR-UL-HAQ 

Before changing the state from "Quote Processing" to "Quote Sent" You must first create a Quote .

 

IF(ISPICKVAL(StageName ,"Quote Sent") && Number_of_Quotes__c = 0, true, false)

 

Steve :-/Steve :-/

Are you trying to create a Validation Rule?

SwarnasankhaSwarnasankha

Based on the post Header, I am to belief that you are trying to create a Validation Rule. Please try using the following expression for the Error Condition Formula:

 

 

AND

(

ISCHANGED(StageName),

ISPICKVAL(PRIORVALUE(StageName), "Quote Processing"),

ISPICKVAL(StageName, "Quote Sent"),

Number_of_Quotes__c = 0

)

 

Steve :-/Steve :-/

If you need to have a Quote in order to set the picklist the Quote sent you could just use this:

 

AND(ISPICKVAL(StageName ,"Quote Sent"), Number_of_Quotes__c < 1)