Hi ,
I am new to skuid and I have an execute javascript button on Courses__c custom object it’s related to Lead.I have tried to write javascript snipet code and I made some changes to my code but it doesn’t work for me. So could you please help me to create custom button in skuid with above code.
And my button code is
{!REQUIRESCRIPT(“/soap/ajax/22.0/connection.js”)}
var updateRecord = new Array();
var myquery = “SELECT Id,Centre__c FROM Lead WHERE Id = ‘{!Lead.Id}’ limit 1”;
result = sforce.connection.query(myquery);
records = result.getArray(“records”);
if(records[0].Centre__c==null)
{
alert('Please select Centre on Enquiries ')
}
else{
window.open(“/apex/AddNewCourse?leadId={!Lead.Id}”,“_self”);
}
Thanks.
Question
Could any one help me to change salesforce Javascript execute button to Skuid custom button ?
This topic has been closed for replies.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
