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
ruheena mohammed 9ruheena mohammed 9 

how to fetch the value of custom object values to visualforce page input fields

how can we fetch the value of custom object values to visualforce page input fields
ksmoksmo
below is the input field on the vf page

<input id="textpanel" type="text" name="txt" size="35" value="{!myoutput}"/>

 apex class Code

Public static String myoutput                                                              {get;set;}

List<custom object name> obj =select query of the field from the custom object goes here
for(custom object name obj : obj){

if(obj.fieldname!=null){
myoutput=obj.fieldname
}

}