You need to sign in to do that
Don't have an account?
Dinesh123
Home Page VisualForce Component not working
I used VisualForce Home Page Component and that VF page has a controller. Code everything is good but when the controller loads the page is not displaying properly but displaying error. Can some one guide me why this might be occuring?
Could you please share your iframe code of home component.
Best Regards,
-Vivek
public boolean showlink{get;set;}
public boolean showlink1{get;set;}
string text3=Label.New_Reviewer;
public Siderbarlinkscontroller(){
showlink1=true;
Id myID3 = userinfo.getUserId();
user u=[select contactid from user where id=:myID3];
list<contact> c= [select Reviewer_Status__c from Contact where id=:u.ContactId];
if(c.size()>0){
for(contact con: c ){
if(con.Reviewer_Status__c.equals(text3)){
showlink=true;
showlink1=false;
}
}
}
}
public PageReference target() {
string url3='http://www.google.com';
pagereference p=new pagereference(url3);
return p;
}
public PageReference target1() {
string url1 ='https://www.yahoo.com';
pagereference p=new pagereference(url1);
return p;
}
public PageReference target2() {
string url2='http://www.facebook.com';
pagereference p1=new pagereference(url2);
return p1;
}
}
http://salesforce.stackexchange.com/questions/38918/end-of-javascript-sidebar-workarounds.
From Salesforce
In Summer ’15 we will start removing unsupported code from HTML Area home page components.As a result, components that contain JavaScript, CSS, iframes, or other unsupported markup might stop working properly. To use JavaScript or other advanced HTML elements in your home page component, we recommend that you use a Visualforce Area component instead.
http://docs.releasenotes.salesforce.com/en-us/summer14/release-notes/rn_forcecom_home_page_components.htm
Please let us know if this will help you.
Thanks,
Amit Chaudhary
Thanks for the reply but I am using VFarea itself.