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
Del_SantosDel_Santos 

Web to Lead form using Sites not passing value to leads

Hi Guys!

 

Can someone help me please. I have a web to lead form using sites which passes the value to my lead object. I decided to change my code by not using an inputfield to allow my javascript code to work but now it not passing the value to lead. please help me.

 

 

......................this code works: it passes the value to leads

<!-- Customer Address Information -->
<apex:pageBlockSection collapsible="false" columns="2">
        <apex:inputField value="{!Lead.Installation_House__c}" required="true" id="insthouse"/>
        <apex:inputField id="element" value="{!Lead.Billing_House__c}"/>
        <apex:inputField value="{!Lead.Installation_Apartment__c}" required="true" id="instapt"/>
        <apex:inputField id="b" value="{!Lead.Billing_Apartment__c}"/>
        <apex:inputField value="{!Lead.Installation_Street__c}" required="true" id="instst"/>
        <apex:inputField id="c" value="{!Lead.Billing_Street__c}"/>
        <apex:inputField value="{!Lead.Installation_Subdivision__c}" required="true" id="instsubd"/>
        <apex:inputField id="d" value="{!Lead.Billing_Subdivision__c}"/>
        <apex:inputField value="{!Lead.Installation_City__c}" required="true" id="instcity"/>
        <apex:inputField id="e" value="{!Lead.Billing_City__c}"/>
        <apex:inputField value="{!Lead.Installation_Zipcode__c}" id="instzip"/>
        <apex:inputField id="f" value="{!Lead.Billing_Zip_Code__c}"/>
</apex:pageBlockSection>

 

 

 

 

 

............this code do not works: does not pass the value to lead

<apex:pageBlockSection title="Installation Address" collapsible="false" columns="1">
            <label for="{!Lead.Installation_House__c}">Installation House </label>
            <input type="text" name="{!Lead.Installation_House__c}" id="insthouse"/><br></br>
            <label for="{!Lead.Installation_Apartment__c}">Installation Apartment </label>
            <select id="instapt" name="{!Lead.Installation_Apartment__c}" size="1">
                <option value="EastwoodParkview1">Eastwood Parkview 1</option>
                <option value="EastwoodParkview2">Eastwood Parkview 1</option>
                <option value="OneCentralPark">One Central Park</option>
            </select><br></br>     
            <label for="{!Lead.Installation_Street__c}">Installation Street </label>   
            <input type="text" name="{!Lead.Installation_Street__c}" id="instst"/><br></br>
            <label for="{!Lead.Installation_House__c}">Installation Subdivision </label> 
            <input type="text" name="{!Lead.Installation_Subdivision__c}" id="instsubd"/><br></br>
            <label for="{!Lead.Installation_City__c}">Installation City </label>
            <input type="text" name="{!Lead.Installation_City__c}" id="instcity"/><br></br>
            <label for="{!Lead.Installation_Zipcode__c}">Installation Zipcode </label>
            <input type="text" name="{!Lead.Installation_Zipcode__c}" id="instzip"/><br></br>
</apex:pageBlockSection>

 

 

Thanks!

Del