I have a Publication object. Publications might have a very long names, longer than 80 characters. That is why Name is suppose to be populated from workflow field update, using substring from custom text field.
How can I override New button on the publication tab:
I created the following custom button, but I do not know how to replace new button with it.
I read many posts online, but could not figure solution for my case.
Please advise.
EDIT I created a visual page which works with custom fields, but when I try to use ID of Name field it does not prepopulate the Name field. Do I retrieve the wrong ID, or should I use some other parameter?
URL after I click on Name field in Setup:
https://cs14.salesforce.com/p/setup/field/StandardFieldAttributes/d?id=Name&type=01Ia0000002Rgjl&retURL=%2F01Ia0000002Rgjl%3Fsetupid%3DCustomObjects&setupid=CustomObjects&rowsperpage=10000
VF page script:
<apex:page standardController="Publication__c">
<script>
window.top.location.href = '/a0f/e?nooverride=1&01Ia0000002Rgjl=Your+Default+Value';
</script>
</apex:page>
Similar question and solution:
https://developer.salesforce.com/forums/ForumsMain?id=906F00000008ocDIAQ