You need to sign in to do that
Don't have an account?
Pip
Apex Trigger
Hi,
Want to create an apex trigger that when an opportunity is saved it overwrites what a user has entered and puts the account name + a custom field. Can anyone help or give suggestions. Can this be applied to only certain opportunity types?
Is this something you could do with a workflow rule and field update?
I already have this built. But it does require them to enter at least something in the opportunity name before saving. As this is a required field. Is there a way around this?
The only way I've found around that is to override the page layout with Visualforce...and then don't display the name field on your custom page. A fairly extreme solution with its own pitfalls ... so I'd only recommend doing that if absolutely required.