<p>Unfortunately this is currently a limitation of Freeform. It expects that the option values are predefined for the field, and not dynamically loaded at template level.</p>

<p>It's on our feature requests list to come up with a way to let users override this functionality. :)</p>

CC BY-SA 3.0
2017-10-06T15:43:26.650Z
2017-10-06T15:43:26.650Z
Solspace
<p>I am populating a select drop down with custom options in the template, but those options are not being displayed in the individual Form submission page.</p>

<p>Example code below:</p>

<pre><code>{% if field.handle == "country" %}            
&lt;div class="fe {{ columnClass }}"&gt;
   &lt;label class="select-label"&gt;
      &lt;select name="{{ field.handle }}" id="form-input-{{ field.handle }}" required&gt;
          &lt;option value=""&gt;Country *&lt;/option&gt;
          &lt;option value="AF"&gt;Afghanistan&lt;/option&gt;
          &lt;option value="xx"&gt;another country...&lt;/option&gt;
    &lt;/label&gt;
&lt;/div&gt;
{% endif %}
</code></pre>

<p>The Country field handle is <code>country</code> </p>

<p>Outputted html is:</p>

<pre><code>&lt;div class="fe freeform-column  freeform-column-6"&gt;
    &lt;label class="select-label"&gt;
        &lt;select name="country" id="form-input-country" required&gt;
            &lt;option value=""&gt;Country *&lt;/option&gt;
            &lt;option value="AF"&gt;Afghanistan&lt;/option&gt;
            &lt;option value="xx"&gt;Another country...&lt;/option&gt;
        &lt;/select&gt;
    &lt;/label&gt;
&lt;/div&gt; 
</code></pre>

<p>When I view the individual submission in admin I see the below:
<a href="https://i.sstatic.net/Q11Ya.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Q11Ya.png" alt="Form submission page"></a></p>

<p>But in the submission list page the value does appear:</p>

<p><a href="https://i.sstatic.net/a8ZF5.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/a8ZF5.png" alt="Submissions List"></a></p>

<p>Thanks</p>

<plugin-freeform><solspace><freeform>
Solspace select options not being stored
# Solspace select options not being stored

(Asked by: username_0 on 2017-10-06)

I am populating a select drop down with custom options in the template, but those options are not being displayed in the individual Form submission page.
Example code below:
{% if field.handle == "country" %}            

   
      
          Country *
          Afghanistan
          another country...
    

{% endif %}

The Country field handle is country 
Outputted html is:

    
        
            Country *
            Afghanistan
            Another country...
        
    
 

When I view the individual submission in admin I see the below:

But in the submission list page the value does appear:

Thanks

**Tags:** plugin-freeform, solspace, freeform


---

## 1 answers

### Answer by username_1 on 2017-10-06. Score: 1

Unfortunately this is currently a limitation of Freeform. It expects that the option values are predefined for the field, and not dynamically loaded at template level.

It's on our feature requests list to come up with a way to let users override this functionality. :)


---

