• Cray Kao
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 3
    Replies

Here is a list button to display selected records.

 

If I want to display the contact name instead of "id of the contact" and also prevent from displaying those whom is "DoNotCall".

 

How to modify the button script?

 

And I am new to Salesforce Developer, and which board will more suitable to discuss javascript button questions. Thanks.

 

{!REQUIRESCRIPT("/soap/ajax/10.0/connection.js")}

var records = {!GETRECORDIDS($ObjectType.Contact)};
if (records[0] == null)
{
alert("Please select at least one record")
}
else{
for (var n in records) {
alert ( records[n] ) }
}

I an a newbie to salesforce, and was following workbook on apex classes.
This is what i did:
Debug-> Open Exceture Anonymous Window.
System.debug('Hello');

Unchecked "open log". Execute

Alas, i couldnt see any log entries, while the workbook says that log entries will appear.
Do i need to make changes somewhere? or
Am i doing it wrong way?
 

Here is a list button to display selected records.

 

If I want to display the contact name instead of "id of the contact" and also prevent from displaying those whom is "DoNotCall".

 

How to modify the button script?

 

And I am new to Salesforce Developer, and which board will more suitable to discuss javascript button questions. Thanks.

 

{!REQUIRESCRIPT("/soap/ajax/10.0/connection.js")}

var records = {!GETRECORDIDS($ObjectType.Contact)};
if (records[0] == null)
{
alert("Please select at least one record")
}
else{
for (var n in records) {
alert ( records[n] ) }
}