Craft\SproutForms_EntryModel and its behaviors do not have a method or closure named I'm working on a site that was partially built by another dev and am having some trouble with Sprout Forms. 

It's partially working but when I add a new field (sailSeries) to the template (it exists in the sprout forms control panel) I get this error:

Craft\SproutForms_EntryModel and its behaviors do not have a method or closure named "sailSeries".


Expanding on what the original dev has I added the sails series inside this for loop at the bottom.

{% for tab in form.getFieldLayout().getTabs() %}
    {% set fields = tab.getFields() %}

    {% for field in fields %}

      {% set required = field.required %}
      {% set tabId = field.tabId %}

      {% set field = field.getField() %}

      {% if field.handle == 'contactType' %}
       {% set dropdownField = field %}
      {% endif %}

      various more fields


      {% if field.handle == 'sailSeries' %}
        {% set  sailSeries = field %}
      {% endif %}

    {% endfor %}
{% endfor %}


The the code later in the template to have the field display:

&lt;div class="frm-row"&gt;
&lt;div class="section colm colm6"&gt;

    {% set submittedDropdownValue = attribute(submittedEntry, sailSeries.handle) %}

    &lt;label class="field select"&gt;
      {{ sailSeries.name }}
        &lt;select id="sailSeries" name="sailSeries"&gt;
        {% for option in sailSeries.settings.options %}
            {% set defaultValue = option.default ? option.value : null %}
            {% set selectedDropdownValue = submittedDropdownValue != '' ? submittedDropdownValue : defaultValue %}

            &lt;option value="{{ option.value }}" {% if selectedDropdownValue == option.value %}selected="selected"{% endif %}&gt;{{ option.label }}&lt;/option&gt;
        {% endfor %}
        &lt;/select&gt;
        &lt;i class="arrow"&gt;&lt;/i&gt;                    
    &lt;/label&gt;  
&lt;/div&gt;&lt;!-- end section --&gt; 
&lt;/div&gt;&lt;!-- /.frm-row --&gt;


As soon as I add this in I get errors. Not sure why or how to troubleshoot. Please advise.

Revised code and now I'm getting this error:


  Variable "sailSeries" does not exist.


no clue why this is happening.
Make sure those "missing" fields aren't used in the title format (under the advanced tab) or in your notifications -  both in the control panel. Ran into something similar just now.