You need to sign in to do that
Don't have an account?
Force2b_Mike
Field value being reset to 'Default' on Cloned Opportunity
I have a custom field on the Opportunity object that defaults to a value of 1, however that value is updated through other processes during the lifecycle of the Opportunity.
What I've found, though is that when the Opportunity is cloned the field value gets reset back to 1 instead of keeping the current value that the original Opportunity had (it was 5). Is there a way to prevent this from happening when cloning an Opportunity?
Thanks,
Mike
Yes, that is where the field defaults to the value of 1 for new Opportunities. However, if the field is updated to a new value at a later point, why would Cloning the Opportunity reset the value back to 1? Shouldn't Cloning keep the current value?
Mike
What I have figured out is that the field value is only reset if the field is not displayed on the page layout. If I place the field on the Page Layout, the value is retained. If I remove the field, the value is reset. My problem is that this is supposed to be a hidden field used by an Apex class for updates.
How can I get SalesForce.com to retain the field value when cloning even if the field is not on the Page Layout?
I had a feeling that was the case, but I was trying very hard to not rewrite the Clone functionality. Guess I don't have a choice. Luckily there are some good code samples out there for this so I don't need to start it from scratch.
Thanks your help.
Mike