You need to sign in to do that
Don't have an account?
adroIT
Using sforce.one.createRecord function
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>
This is a related post which may help - http://salesforce.stackexchange.com/questions/21858/how-to-use-sforce-one-createrecord-method
Thanks for pointing me to stackexchange post. Actually that post was
created and answered by me (adroIT). The answer is just a work around to
use inline javascript instead of calling a javascript function. Anyways,
Thank you for your kind reply.
Not sure why the JavaScript call from the outputlink isn't working...anyway I just tried this with bypassing the function and called it directly:
Does this work for you?
Try any other JavaScript function name instead of "createEvent" and it seems to work. Success?
Any sugges how i can accomplish that?