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
anu_karthianu_karthi 

asiigning values dynamically to visualforce textfields..

Hi everyone,

 

I am having avisualforce page with customfields,and i want to assign  a value stored in a variable ti it iam tryimg to do it like this but its not working plz help me with an example...

 

var duplicate=anu;

 

 document.getElementById('{!$Component.form1.name}').value=duplicate;

 

<apex:inputField id="name" value="{!CAF_Bank__c.Bank_Name__c}">

 

can i do this ..

 

  plz some one help me how can i assign a variable  to the current field in a form...

         

                                                                                        Thanks&Regards,

                                                                                                Anu...

 

 

   

 

 

Best Answer chosen by Admin (Salesforce Developers) 
Ron HessRon Hess

see this article

http://wiki.developerforce.com/index.php/Adding_CAPTCHA_to_Force.com_Sites

 

there is an apex form that assigns values to hidden form fields

All Answers

Ron HessRon Hess

see this article

http://wiki.developerforce.com/index.php/Adding_CAPTCHA_to_Force.com_Sites

 

there is an apex form that assigns values to hidden form fields

This was selected as the best answer
anu_karthianu_karthi

Hi Ron Hess,

 

      Thank u so much for your help...