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
Zhenyu LiuZhenyu Liu 

How to hide required field with default value?

Hi Team,

I got a requirement to create a mini opportunity screen for user. For example, when user click "new opportunity" button which located in Account object. It will direct user to this mini opportunity screen. In this screen,  user doesn't want to see bunch of stull like the full opportunity screen. They only want to see Account Name and couple other custom fields.

I know Opportunity name, Stage as well as posibilities are standard fields and two of them are required. So Could I hide them and put default value for users?

Thanks in Advance 
Best Answer chosen by Zhenyu Liu
Neetu_BansalNeetu_Bansal
Hi Zhenyu,

You can create a visualforce page for this and in the controller class you can assign the default values for the reuired field.
I can help you to achieve this. You can contact me either on my gmail id: neetu.bansal.5@gmail.com and Skype id: neetu.bansal.5

Thanks,
Neetu