+ Start a Discussion
KenAllredKenAllred 

Need help creating an Inline Visualforce Page that changes based on the current Opportunity stage

I was hoping I could get some help creating an inline visualforce page on my Opportunity page layout.

 

The purpose of this page would be to display instructions to the sales rep based on the opportunity's current stage. And then when the opportunity stage changes, the content of the inline visual force page would change and display the new instructions for the new stage selected.

 

Example:

 

First opportunity stage = Sales Qualified Lead

 

Inline visualforce page would display static text specific to the Sales Qualified Lead stage. Something like this:

 

1) Make sure you walk them through the standard checklist document (html link to doc on intranet)

2) Make sure you review the ABC document with them (html link to doc on intranet)

 

Then when the sales rep moves the opportunity to the next stage:

 

Second opportunity stage = Needs Analysis

 

The visualforce page's content changes and shows them a new set of instructions based on the Needs Analysis stage. Something like:

 

1) Complete the company overview presentation with them (link to PPT on intranet)

2) Demonstrate our our reporting functionality (link to doc)

 

And then the rest of the opportunity stages would work just like the above, each with specific instructions based on the stage.

 

As the sales rep progresses through our sales process and changes the sales stage they always have instructions on what they're supposed to be doing during that stage of our sales process.

 

I'm brand new to visualforce (watching the introduction to visualforce pages video now - lol) and would be very grateful if someone could give me the basic building blocks to do what I'm trying to do here and then I could take it from there.

 

Thank you!

 

- Ken

nickwick76nickwick76
Hi,
maybe you should consider using a formula. ( type: text ).
This should be easiest to set up and wouldn't require much code but some formula IF- statements. You can place this field anywhere you'd like on the page layout.

Eg.
If(stagename = 'identifierad';'some text';
Etc..

HTH / Niklas