Answers.Body: <p>What I found is:</p>
  
  <ul>
  <li>add the field needed (eg. preferred field)</li>
  <li>go on form components and edit that field to enable only the option wanted (eg. spanish) and set it as the default</li>
  <li>set the widget as "hidden"</li>
  </ul>
  
  <p>It's not bullet proof, as in theory, the visitor can still use tools like firebug and alter that field</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-01T22:52:22.943Z
Answers.Text: make it "hidden - secure value" and it will be bulletproof.
Answers.UserDisplayName: Coleman
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-02T08:05:14.527Z
Answers.Text: that was the missing step, thanks coleman
Answers.UserDisplayName: Xavier
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-01-31T15:39:20.640Z
Answers.LastActivityDate: 2016-01-31T15:39:20.640Z
Answers.UserDisplayName: Xavier
Body: <p>I'm creating several webforms in different languages to let people register to receive more information. I would like to set their preferred language to the language used in the form rather than the default (en_US). </p>
  
  <p>I have similar needs for some custom fields.</p>
  
  <p>How can I do that?</p>
  
Tags: <webform-civicrm>
Title: How to set a constant value for a field in webform (eg the prefered language)?
ThreadText: # How to set a constant value for a field in webform (eg the prefered language)?
  
  (Asked by: username_0 on 2016-01-31)
  
  I'm creating several webforms in different languages to let people register to receive more information. I would like to set their preferred language to the language used in the form rather than the default (en\_US).
  
  I have similar needs for some custom fields.
  
  How can I do that?
  
  **Tags:** webform-civicrm
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2016-01-31. Score: 3 | Accepted answer
  
  What I found is:
  
  * add the field needed (eg. preferred field)
  * go on form components and edit that field to enable only the option wanted (eg. spanish) and set it as the default
  * set the widget as "hidden"
  
  It's not bullet proof, as in theory, the visitor can still use tools like firebug and alter that field
  
  > **Comments:**
  > **username_1**: make it "hidden - secure value" and it will be bulletproof.  
  > **username_0**: that was the missing step, thanks coleman  
  
  ---
  
  