function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
<!--- Visualforce Page -----> <apex:page controller="ControllerCopyValueButton"> <apex:form id="a"> <apex:outputLabel >First Name</apex:outputLabel> <apex:inputText value="{!fn}"/> <apex:commandButton value="Copy Field" action="{!copyField}"/><br/> <apex:outputLabel >Last Name</apex:outputLabel> <apex:inputText value="{!ln}"> <apex:actionSupport event="onclick" reRender="a"/> </apex:inputText> </apex:form> </apex:page>
public class ControllerCopyValueButton { public String fn {get;set;} public String ln {get;set;} public PageReference copyField{get; set;} public PageReference copyField(){ if(fn!='' || fn!=null){ ln = fn; } return null; } }
Hope this helps you!Best Regards,Deepthi
Use <apex:actionSupport> to meet this requirement. Please check the below code.
Hope this helps you!
Best Regards,
Deepthi