• adroIT
  • NEWBIE
  • 0 Points
  • Member since 2013

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

Hi,

 

Can you please help on how to use sforce.one.createRecord function. I'm trying to redirect the user to standard new event page using this function on click of a link. But the page simply refreshes. Below is my code. Please help.

 

function createEvent(){
sforce.one.createRecord('Event', null);
}

 

<apex:outputLink  onClick="createEvent()">New Event</apex:outputLink>

  • December 09, 2013
  • Like
  • 1

Hi,

 

Can you please help on how to use sforce.one.createRecord function. I'm trying to redirect the user to standard new event page using this function on click of a link. But the page simply refreshes. Below is my code. Please help.

 

function createEvent(){
sforce.one.createRecord('Event', null);
}

 

<apex:outputLink  onClick="createEvent()">New Event</apex:outputLink>

  • December 09, 2013
  • Like
  • 1

Hi,

 

Can you please help on how to use sforce.one.createRecord function. I'm trying to redirect the user to standard new event page using this function on click of a link. But the page simply refreshes. Below is my code. Please help.

 

function createEvent(){
sforce.one.createRecord('Event', null);
}

 

<apex:outputLink  onClick="createEvent()">New Event</apex:outputLink>

  • December 09, 2013
  • Like
  • 1