Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Hi

On my list view for blog articles on my site, I have a dropdown menu where users can select a folder and then press the submit button and it will filter the results based on the folder they chose.
The options in the dropdown are loaded using <cms:folders> tag, like so:
Code: Select all
<select name="folder" id="select-folder">
       <option value="" disabled selected>Category</option>
       <cms:folders masterpage="blog.php">
               <option value=k_folder_name><cms:show k_folder_title/></option>
       </cms:folders>
</select>


However, when I use javascript to get the value of the form input when they click submit, the value of the dropdown is always "k_folder_name" instead of the actual folder name. How can I get around this issue?

Thank you
Hi,

Please rectify the following line of your code -
Code: Select all
<option value=k_folder_name><cms:show k_folder_title/></option>

to make it as follows -
Code: Select all
<option value="<cms:show k_folder_name />"><cms:show k_folder_title/></option>

Hope this helps.
Hi

Thank you very much, this solved the issue! :)
3 posts Page 1 of 1
cron