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
Mohita KalraMohita Kalra 

Hi, I want to create a case on the basis of values selected from input box.

Hi All, I want to get a case creation window with different page layouts depending upon the picklist values from few input fields. Any idea how this can be achieved ? Basically there has to be few picklist fields for input and based on different combinations of input selected , a new case window should open of a particular page layout.
ShirishaShirisha (Salesforce Developers) 
Hi Mohita,

You can create a custom Visualforce page in which you can add the picklist values as need.Once,you select the picklist value then you will have to open an another visualforce page which will load the respective pagelayout view as we can't query the pagelayouts.For that you will need to write the code according to your requirement.

IDEA for querying the pagelayout:

Sample VF page to get inputs by the user:

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Warm Regards,
Shirisha Pathuri