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
Ankit SinghalAnkit Singhal 

How to populate an arguement as default value in input field on VF

I have an Id field which is passed as an arguement to controller on a VF page.

 

i want to populate this Id field as a default value in an <Apex:inputfield> column

 

say <apex:inputField value="{!Applied_SMP__c.Assign_To__c}"/>

 

 

so I want to populate this input field with the parameter that is passed to controller from some other VF page.

 

How to achieve this.

plz help

kamlesh_chauhankamlesh_chauhan

Hi,

 

You can assign ID value to "Applied_SMP__c.Assign_To__c" directly in constructor of the controller.

 

Regards,

Kamlesh Chauhan, (Founder & CTO)

LogicRain Technologies, (Salesforce and Force.com Development Division)

Cellular: +91-(997) 476-6800 Office: (732) 676-6400 Skype:kamlesh.logicrain

kamlesh@logicrain.com || http://www.logicrain.com || LinkedIn