[resolved] How to keep expanded after clicking submit button? (3 posts)

  1. senyoraangelica
    Posted 2 years ago #

    Hello! I have a search form with several checkboxes as search options inside [expand][/expand]. See below:

    <form action="" method="get">
    <input type="text" name="search" value="">
    <input type="submit" class="pods-form-filters-submit" value="Search">
    [expand title="Search Options:"]
    <input type="checkbox" name="title" checked="checked">
    	<label for="title">Title</label>
    <input type="checkbox" name="author">
    	<label for="author">Author</label>

    If the collapse-o-matic is still expanded before clicking the submit button, how do I keep it remain expanded when the page refreshes with the search results?

    Can I reference it using if and else in php? Please help.


  2. Baden
    Plugin Author

    Posted 2 years ago #

    There is a solution for this problem using cookies. It it a feature that is built into Collapse-Pro-Matic. You can check out more on the cookie feature here: http://plugins.twinpictures.de/premium-plugins/collapse-pro-matic/documentation/#cookie

  3. senyoraangelica
    Posted 2 years ago #

    Awesome! Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Collapse-O-Matic
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic