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
Javier MaldonadoJavier Maldonado 

Set up default value using apex:inputfield

I'm trying to build a visualforce page that allows me to get information to input a record, in this case, a specific field which is Product_Type is not going to change, and that I'm looking for is make this value by default will be 'Open Mesh', so when I start to input the information, the field Product_Type = 'Open Mesh' is a hidden value by default.

Any help will be welcome... Thanks in advance
Mahesh DMahesh D
Hi Javier,

Please paste your existing code so that we can help you. Paste both VF and controller.

Generally we can do these kind of things when you are creating object in Controller we can assign the value to it and that be show when the VF page loads in.

Regards,
Mahesh