+ Start a Discussion
Priya MishraPriya Mishra 

creating a record through vf page bases on condition

Hello Everyone,

I have to create  the record in a custom object and case and contact object based on the value selected in vf page.
find the screen shotUser-added image
when we select new user it has to create the record for the custom object and at the same time in the case and contact object. please help me out for this requirement.
please help me out with the sample code.
thanks in advance.

ShirishaShirisha (Salesforce Developers) 
Hi Priya,


You can create the VF page to select the value in the User Type picklist based on it you need to create record using the form for the Object on which you can provide the values.

Please find the sample code in the below thread:

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri