You need to sign in to do that
Don't have an account?
vanessa veron
JS function to prepopulate an inputText
Hello
I have a JS function to prepopulate an inputText according to the outputText ...
Is not working.
Help me please!
I have a JS function to prepopulate an inputText according to the outputText ...
Is not working.
Help me please!
<apex:page standardController="CronTrigger" extensions="BBpoll" > <link rel="ic" type="image/png" href="http://www.voca.com/bull.png"/> <script type="text/javascript"> function prepopulate(){ var getOPT = document.getElementById("{!$Component.theform.aaa}").value; document.getElementById("{!$Component.theform.bbb}").value = getOPT; } </script> <apex:form id="theform" onclick="prepopulate();"> <c:sectionHeader iconsrc="http://voc.srv1.votre-/lle.png" title="Planifiy" subtitle="=)"/> <apex:PageBlock > <apex:image id="theImage" styleClass="imageCenter" value="http://www.voca.com/logo.png" /> <br /><br /> <apex:outputText id="aaa" value="{!$CurrentPage.parameters.nomJobPG2}" /><br /> Nom Job.: <apex:inputText id ="bbb" value="{!nomJob}" /><br /><br /> ............ </apex:PageBlock> </apex:form> </apex:page>
https://developer.salesforce.com/forums/ForumsMain?id=906F0000000AZBLIA4