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:
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
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