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
Giancarlo AmatiGiancarlo Amati 

<Value> not define button Javascript

Dear All,
I have the following Javascript code for a button "Submit for Approval". When I try to send an alert passing the value of {!SBQQ__Quote__c.Deal_Type__c} that is a TEXT value, I receive the following message below.

Any help?
Thank you

User-added image
 
this.disabled = true;
this.className = 'btnDisabled';

if (  ({!SBQQ__Quote__c.Show_Lines_Summary__c} == '')||({!SBQQ__Quote__c.SBQQ__Primary__c}== '' )) {
 
 
window.alert('deal type: ' + {!SBQQ__Quote__c.Deal_Type__c} ); 

} else window.alert('dummy');