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
jackeejackee 

Parameter field assign value to another parameter field

<apex:inputText value="{!Params.Name}" styleClass="inputText" id="parentName"/>
                <apex:inputHidden value="{!Params.Name2}" id="Ownership"  /> 

 

I am using Parameter class.

 

public Class Parameter{
        public String Name{get; set;}
        public String Name2=Name;
        
       public String getName2() { return Name2; }

    public void setName2(String Name) { Name2= Name; }

I would like to assign Name to Name2 always, this is for search form.

 

But for some reason, I am not able getName2 value.

 

any idea ?

Chamil MadusankaChamil Madusanka

Hi,

 

Can you post your complete code (VF and controller)?