Video
Docs
These are the neccessary steps to setup a current locale input in your form.
HTML Structure
Image
Description
Inside of you "form" element add Locales List. Delete link from Locale item and add custom element instead.
Visibility
Image
Description
Set custom element's visibility to "Active" by pressing the plus icon in Visibility & user access settings.
HTML tag
Image
Description
Set "Tag" setting to "input" so that we have a text field element instead of a div block.
Attributes
Attribute
Name
value
Value
Current Locale > ISO Code
Description
Set input's value attribute to Current Locale > ISO Code to pre-populate input with current locale's code.
Attribute
Name
name
Value
Locale
Description
Add one more attribute with a name "name" and value "Locale" to have the field submitted under this name.
You can set name to any field name.
Attribute
Name
type
Value
hidden
Description
Set one more attribute with a name "type" and value "hidden" to hide your input.
You also can hide the input with CSS.