• Alastair1988
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 5
    Questions
  • 1
    Replies

Hi everyone,

 

I am trying to create what is essentially an order form using a visualforce page and apex. I am not a dev so I am learning as I go with this but I know what I want to do is acheiveable.

 

Essentially I want to create a button on an opportunity that is something like "add products" and this would take a user to a form. On this form there would be fields that they can complete, some number, some checkboxes and some would autopopulate from teh opportunity record the ahweve come from.

1. OpportunityID (Auto populate from Opportunity) locked field

2. Opportunity Name (Auto Populate from Opportunity) locked field

3. a set of checkboxes that relate to individual products

4. Quantity fields that are specific to each product (mapped to quantity on opportunitylineitem)

5. Salesprice products that are specific to each product (mapped to sales price on opportunitylineitem)

6. An upload document field that will put a document in the notes and attachments related list

 

On sumbitting this form, dependig on what has been selected, opportunity line itmes will be created against the opportunity that the user has come from.

 

If anyone could help/point me in the right direction it would be much appreciated.

 

Thanks,