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
Rakesh RRakesh R 

How to save picklist value in State field of Lead object

Hi Friends,
i am using a custom Web to Lead form, where am tring to add a value into State field of Lead object. i am trying to achieve this with two approaches  below but am unable to save it.

First Approach - 
<label class="enroll__form--desc" for="State">Estado</label>
<select class="form-control enroll__form-height enroll__form-input" id="State" name="State"  placeholder="Estado"/> 

Second Approach - 
<label class="enroll__form--desc" for="State">Estado</label>
<select class="form-control enroll__form-height enroll__form-input" id="State" name="lead.State"  placeholder="Estado"/> 

Please help me 
.
Thanks in advanced
MagulanDuraipandianMagulanDuraipandian
You can use the below
<label for="state">State/Province</label><input  id="state" maxlength="20" name="state" size="20" type="text" />
Or you can try to generate the form again including the State field.
--
Magulan Duraipandian
www.infallibletechie.com
Rakesh RRakesh R
Hi MagulanDuraipandian,
i have list of state and choose any one from it. i am getting the list of State's but unable to set it.