I've been asked to create a button on the opportunity object that will open a questionnaire with about 20 questions and gets saved to the related opportunity record. The questionnaire will not be used every time, so it somehow has to show that it was used. It can be a Word template if that's the best we can do, but what they really want is something created within Salesforce.

  • Create a new Custom button for Opportunity
  • Choose Context Source as Url
  • Insert your Url in the big text area below

  • On the receiving end catpure the Opportunity Id and relate it to the questionnaire in Apex Controller

    questionnaire.Opportunity__c = ApexPages.currentPage().getParameters().get('opportunity_id');

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.