You need to sign in to do that
Don't have an account?
Forrest Muldune 36
All,
I created a custom button on an opportunity with the code below
/p/process/Submit?id={!Opportunity.Id}&retURL=%2F{!Opportunity.Id}
Is there a way to create a button using Visual force where this button will be displayed only if the Stagename = Sales Order ?
Does anyone have any visualforce code examples?
Show Button based on Condtion
All,
I created a custom button on an opportunity with the code below
/p/process/Submit?id={!Opportunity.Id}&retURL=%2F{!Opportunity.Id}
Is there a way to create a button using Visual force where this button will be displayed only if the Stagename = Sales Order ?
Does anyone have any visualforce code examples?
But you can achieve in two ways:
1. Create two page layouts: Page Layout 1 (has no Button) --> will be enabled when Stagename != Sales Order
Page Layout 2 (has your Button) --> will be enabled when Stagename = Sales Order.
You need to control the two page layouts via recordtypes, if required you might have to create new.
2. VF Page and use 'Rendered' method to show/hide your button.
If the above solution doesn't work, then please provide more information.
we are trying to avoid creating new page layouts and records types, as much as possible.
I appreciate your response.