I want to do something that's been asked about before, but I am going to give some more reasoning in case I'm missing a better solution.
I am developing a package. As part of this package, there's a custom wizard for creating the case and some related fields. The steps I'd use are:
- Log call and caller (and dedupe)
- Take notes and determine basic case information
- Fill out details about case
I would love to be able to use the case's record type to generate the final page of the wizard. In an ideal world, administrators who install this package would be able to control the layout for each record type and thereby control the final page of the wizard.
Maybe the best way to do this is simply to set the record type in step 2, save all the information, and send the user to the edit page of the Case at the end of the wizard. Does that work? What am I missing here?
return ApexPages.StandardController(case).edit();
?