Alex87 Posted April 1, 2019 Share Posted April 1, 2019 Hi there!!!! I'm trying to make a html form and I want to display feature values in every option... I've made this <tr class="field-search field-search-2"> <td class="label-search">LABEL</td> <td class="value-search"><select class="" name="profil" id="profil" style="color:#191919; font-size:14px;"> <option value="">WIDTH{$model_ddl_default_text}{/if}</option> <option value="25">25</option> <option value="30">30</option> <option value="35">35</option> <option value="40">40</option> <option value="45">45</option> <option value="50">50</option> <option value="55">55</option> <option value="60">60</option> <option value="65">65</option> <option value="70">70</option> <option value="80">80</option> </select></td> </tr> I want to display feature values in a {foreach} loop... like this {foreach from=$feature_value} <option value="{$feature_value}">{$feature_vale}</option> {/foreach} Can you please tell me how is that posible?? Do I have to create a function in a php file to generate the variable?? the code must be in a .tpl file!!!!!! Thanks Link to comment Share on other sites More sharing options...
NemoPS Posted April 8, 2019 Share Posted April 8, 2019 If you mean something the user can actually choose, you have to use attributes and combinations Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now