Forums » Getting Started

simple_search field value modification

(3 posts)
  • Started 3 months ago by rcsampang
  • Latest reply from rcsampang
  • This topic is resolved
  1. rcsampang | Inactive
    3 months ago # | |

    I am trying to modify the value of the search button from "submit" to "search" because some of our users are getting confused with the term "submit".

    When I looked at the source I figured out that I could simply change value="Submit" to value="Search"

    <div id="search">
    <h2>Search</h2>
    <form id="simple-search" action="http://localhost/mk/items/browse" method="get">
    <fieldset>
    <input type="text" class="textinput" name="search" value=""/>
    <input type="submit" name="submit_search" id="submit_search" value="Submit" /> </fieldset>
    </form></div>

    After looking around I realized I should be looking for simple_search function

    <?php echo simple_search(array('id'=>'simple-search'),uri('items/browse')); ?>

    Am I doing this right? Can anyone point me to the right direction?

    Thanks!

  2. kkay | Member
    3 months ago # | |

    The simple_search function is in application/helpers/FormFunctions.php. It is about halfway down, around line 232.

    In the simple_search function, I think you can just change the value below of argument "Submit" to "Search" and you'd be good to go.
    <?php submit("Submit","submit_search"); ?>

    Hope that helps.

  3. rcsampang | Inactive
    3 months ago # | |

    Thanks!

    Your instruction provided the solution to my problem, surely it saved me a lot of time from looking for the simple_search function.

RSS feed for this topic

Reply

You must log in to post.