Velocity script based on stage value in opportunity
Hi There,
I am trying to write a velocity script to pull data from opportunity list items, but I'm running into an issue when a record has more than one opportunity - the script isn't differentiating between opportunities even though I'm adding the opportunity stage as unique identifying criteria.
#if( $display.alt($OpportunityList.Stage.equals("Documents Collection")) )
#foreach( $oppty in $OpportunityList.Stage.equals("Documents Collection") )
#if ( $display.alt($oppty.Primary_Program__c.contains("Video Game Design and Animation")))
#if( !$display.alt($oppty.Government_Photo_ID_Received__c,"").isEmpty() )
Thank you for providing a valid Government Photo ID
#end
#if( !$display.alt($oppty.Status_In_Canada_Doc_Received__c,"").isEmpty() )
Thank you for providing valid proof of your status in Canada
#end
#if( !$display.alt($oppty.Letter_of_Intent_Received__c,"").isEmpty() )
Thank you for sending your Letter of Intent
#end
#if ( !$display.alt($oppty.All_Transcripts_Received__c ,"").isEmpty())
Thank you for providing Transcript
#end
#end
#end
#end
This is what I have.
Can someone please tell me what I am missing?
Thanks in advance