• Mahu Sims
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 3
    Replies
I want to see the contact's role in all of the opportunities he/she are attached to. ex. John has the role of "decision maker" in one opportunity and the role of "influencer" in another opportunity.

Something like this: https://www.youtube.com/watch?v=z1YMKBYqt9k
Hello,

I am trying to rollup some information in Salesforce. How would I rollup a field on the account level with number of active users (users with a last activity date within the last 12 months)? I tried this using a free version o rollup helper but it doesn't seem to be working correctly. Any ideas?
Hi!

I am creating a custom detail page button that needs to change color based on the data from our custom field. This is an onClick js button. 
The problem I am having is that the button does not change color until after the button is clicked, while i want this to occur as soon as the page is loaded.

Here is what I have so far:
{!REQUIRESCRIPT("/soap/ajax/20.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/20.0/apex.js")} 


var growth = '{!Contact.Orders_Growth_YOY_Change_User__c}'; 


(function() {
if(growth == ''){
var button = document.getElementsByName('check_contact_health')[0];
  button.style.background = 'url("http://www.dcfanboy.com/media/catalog/product/cache/1/image/265x265/17f82f742ffe127f42dca9de82fb58b1/s/m/smoke_gray.jpg)';
}());

alert("This contact has not begin to bill with Mimeo yet. There will be no growth data until contact has billed for at least 12 months");
}
else if(growth >=1){
(function() {
var button = document.getElementsByName('check_contact_health')[0];
  button.style.background = 'url("http://upload.wikimedia.org/wikipedia/commons/d/de/Color-Green.JPG")';
}());

alert("This contact's orders are currently growing. This contact's year over year order growth is equal to '{!Contact.Orders_Growth_YOY_Change_User__c}'");
}
else if(growth ==0){
(function() {
var button = document.getElementsByName('check_contact_health')[0];
  button.style.background = 'url("http://upload.wikimedia.org/wikipedia/commons/d/d0/Color-yellow.JPG")';
}());

alert("This contact's orders are currently the same as they were in the previous 12 months. This contact's year over year order growth is equal to '{!Contact.Orders_Growth_YOY_Change_User__c}'");
}

else{
(function() {
var button = document.getElementsByName('check_contact_health')[0];
  button.style.background = 'url("http://www.colorcombos.com/images/colors/FF0000.png")';
}());

alert("This contact is currently at risk as the contact is ordering less than they did in the previous 12 months. This contact's year over year order growth is equal to '{!Contact.Orders_Growth_YOY_Change_User__c}'");
}

Thanks in advance for your help!
Hi!

I am creating a custom detail page button that needs to change color based on the data from our custom field. This is an onClick js button. 
The problem I am having is that the button does not change color until after the button is clicked, while i want this to occur as soon as the page is loaded.

Here is what I have so far:
{!REQUIRESCRIPT("/soap/ajax/20.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/20.0/apex.js")} 


var growth = '{!Contact.Orders_Growth_YOY_Change_User__c}'; 


(function() {
if(growth == ''){
var button = document.getElementsByName('check_contact_health')[0];
  button.style.background = 'url("http://www.dcfanboy.com/media/catalog/product/cache/1/image/265x265/17f82f742ffe127f42dca9de82fb58b1/s/m/smoke_gray.jpg)';
}());

alert("This contact has not begin to bill with Mimeo yet. There will be no growth data until contact has billed for at least 12 months");
}
else if(growth >=1){
(function() {
var button = document.getElementsByName('check_contact_health')[0];
  button.style.background = 'url("http://upload.wikimedia.org/wikipedia/commons/d/de/Color-Green.JPG")';
}());

alert("This contact's orders are currently growing. This contact's year over year order growth is equal to '{!Contact.Orders_Growth_YOY_Change_User__c}'");
}
else if(growth ==0){
(function() {
var button = document.getElementsByName('check_contact_health')[0];
  button.style.background = 'url("http://upload.wikimedia.org/wikipedia/commons/d/d0/Color-yellow.JPG")';
}());

alert("This contact's orders are currently the same as they were in the previous 12 months. This contact's year over year order growth is equal to '{!Contact.Orders_Growth_YOY_Change_User__c}'");
}

else{
(function() {
var button = document.getElementsByName('check_contact_health')[0];
  button.style.background = 'url("http://www.colorcombos.com/images/colors/FF0000.png")';
}());

alert("This contact is currently at risk as the contact is ordering less than they did in the previous 12 months. This contact's year over year order growth is equal to '{!Contact.Orders_Growth_YOY_Change_User__c}'");
}

Thanks in advance for your help!