You need to sign in to do that
Don't have an account?

How do I create a "Create New Contact" button?
Want to create a "New Contact" button that is located directly on the Contact record. Can someone supply me with the code to create a new contact; so I can create the custom button.
thanks,
p
You can give this URL /003/e?retURL=%2F003%2Fo in the custom button.
Also make sure the Content source is URL for the Custome Button.
All Answers
Hai,
{!REQUIRESCRIPT("/soap/ajax/13.0/connection.js")}
var con= new sforce.SObject("contact");
con.LastName = 'Praga';
resulttrans = sforce.connection.create(con);
alert('created');
window.location.reload();
Check the above code,Get back to me if you have any doubt.
You can give this URL /003/e?retURL=%2F003%2Fo in the custom button.
Also make sure the Content source is URL for the Custome Button.