title: Django crispy forms - Set hidden field value
body: <p>I've got the following django crispy form:</p>
  
  <pre><code>class ConsultForm(forms.ModelForm):
      class Meta:
  
          model = Consults # Your User model
          fields = [ 'TEMPLATE','EMAIL', 'DATE']
          labels = {
  
          'EMAIL' : 'Your Email',
          'DATE' : 'Todays date',
  
          # 'captcha': "Enter captcha"
  
          }
      helper = FormHelper()
  
      helper.form_method = 'POST'
      helper.form_action = "/contact/"
      helper.form_id = 'form' # SET THIS OR BOOTSTRAP JS AND VAL.JS WILL NOT WORK
  
  
      helper.add_input(Submit('Submit', 'Submit', css_class='btn-primary'))
  
  
      helper.layout = Layout(
          Field('TEMPLATE', type="hidden"),
          Field('DATE', type="hidden"))
  </code></pre>
  
  <p>I want to pass a value with the hidden field TEMPLATE. I've read <a href="https://django-crispy-forms.readthedocs.io/en/latest/api_helpers.html" rel="nofollow noreferrer">https://django-crispy-forms.readthedocs.io/en/latest/api_helpers.html</a> ,     but can't see how to do this. How can I get this done?</p>