1

After Summer'15 release the html area home page components with java script is not going to work. So we are using visual force area component. I am trying to rename Save button in all standard page layouts to "Submit", using java script DOM.To get the element, we used "window.top.document.getElementsByName". Now this line is not working from VF page that is used in the Home Page Component(Visual Force Area). Please suggest Jquery/JS that will retrieve the element out side the VF page.

1

As per release notes: it is cleary mentioned :

http://docs.releasenotes.salesforce.com/en-us/summer14/release-notes/rn_forcecom_home_page_components.htm

Visualforce Area home page components can be added to the narrow or the wide column of the home page layout, and the referenced Visualforce page can use a standard or custom controller. You can include JavaScript in your Visualforce page, but because the component is rendered in an iframe on the home page layout, the JavaScript can’t interact with the page that contains the component.

Seems like SFDC has taken off the ability to run javascript to access Home page components. You can refer following other posts/discussion around this topic

Why do we still need to hack the Sidebar? Usecases - Workarounds - Alternatives

This one clearly provided 'alternative' which could help you to achieve what your're looking for:

End of javascript sidebar workarounds?

  • But using window.top.document we can communicate with outer page from iframe right? It's happening from HtmlArea, but not from VF Page. Previously the HTML Area component is accepting to edit HTMl, but now it will accept only rich text, images. Not HTML. – Sainath Pinninti May 22 '15 at 7:53
  • Thank you very much @Curious_techy. It's worked superbly. – Sainath Pinninti May 24 '15 at 17:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.