Is there any way to create a custom button with URL or Javascript, and the scenario is when a user click on custom button(edit button functionality) in case object it should pre-populate the status field value to 'NEW' even it is having different status. I tried by using button URL, but I dint find where can I find status ID?Any help is really appreciated.

Thanks In Advance: Naresh


The below screenshot will tell you how to use inspect element and get the Id and then how to append and form URL to pre-populate



Please note this is risky if salesforce changes the IDs of these element and hence this method should be avoided .Instead try using the solution described in below blogs for same

http://www.frankneezen.com/2013/04/salesforce-url-hacking-prepopulating-fields/ http://andyinthecloud.com/2014/01/05/querying-custom-object-and-field-ids-via-tooling-api/


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.