• Shiv1231
  • NEWBIE
  • 5 Points
  • Member since 2009

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

I have created a new HTML component in home page and pasted this code. But it is not working. Please help.

 

 

<B>Test text for new js</B>
<SCRIPT type=text/javascript>
function addLoadEvent(func) {
    var oldonload = window.onload;
    if (typeof window.onload != 'function') {
        window.onload = func;
    } else {
        window.onload = function() {
            if (oldonload) {
                oldonload();
            }
            func();
        }
    }
}
addLoadEvent(function() {
    if(window.parent.document.getElementsByName("save_new" )[0]) {
        window.parent.document.getElementsByName("save_new" )[0].style.display='none';
        window.parent.document.getElementsByName("save_new" )[1].style.display='none';
    }
})
</SCRIPT>

Hello, Is it possible to limit the data field to Month and Year only?I am trying to create a visual force page that has a to and from date.But would like to show only Month and Year to the User.

 

Is there anyway to remove/hide the standard Save & New button on the edit page of Salesforce.

 

I don't want this action for my User and I don't have control over the standard edit page layout of Salesforce unlike the detail page layout. Please let me now if this is possible in some ways in the standard Salesforce page itself.

 

Regards,

Karthik.