function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
knicholsknichols 

Check Parameters

I'm trying to figure out what parameters I have available in VF.  We want reps to be able to create an opportunity from Contact, Account, or Project(custom object).  So we created a VF page that needs to handle all the situations.  So how do I check where I came from?  For example, if they came from an Account we don't want to ask them what account they want to use for the Opportunity.  Same way with coming from a Project or Contact.  Any ideas?  I'm new to visual force.

David VPDavid VP

I'm pretty sure that if you create your page with a standardController="Opportunity", it will all by itself detect where you clicked the 'new' button and pre-populate the lookup field for you.

You can always add custom code in an extension if you need to.

 

 

D.