title: Add input fields dynamically with wtforms
body: <p>I'm not quite sure how approach this matter. I hope i get there.</p>
  
  <p>For example I have a table full of addresses on a page. The count of these are dynamic (could be 5 or 10 or any other count). And I want the possibility to edit them on one page.</p>
  
  <p>My approach was to create a Form with wtforms to edit one address and to multiply
  it in a jinja2 <code>for loop</code> and append to the html propertys <code>name</code> and <code>id</code> the 
  <code>loop.index0</code> from the itereation, so i can extract each row of data manually
  and put it back in my form, when I want to evaluate it.</p>
  
  <p>So the Form for this example would be:</p>
  
  <pre><code>class AdressForm(Form):
      name = TextField()
  </code></pre>
  
  <p>so now my template aproach looks like the following (break down to one input field):</p>
  
  <pre><code>{% for address in addresses %}
      {{ forms.render_field(addressform.name, id = "name_" ~ loop.index0, 
                            name = "name_" ~ loop.index0, value = address.name) }}
  {% endfor %}
  </code></pre>
  
  <p>(forms.render_field is just a macro to specify the right classes to the field function of wtforms. like they use in many tutorials)</p>
  
  <p>So this is not working, since you can't pass the <code>name</code> parameter manually to the field function, since wtforms create the <code>name</code> html-paramter from the variblename of the intial Form.</p>
  
  <p>So is there a way to add a prefix or postfix to the name of a form I want to render. 
  Or is this a XY-Problem and my approach is totaly wrong.</p>
  
  <p>or have I do it all plain by myself (I really try to avoid this)</p>