ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

form_class and form_id not working

August 09, 2010 1:41pm

Subscribe [2]
  • #1 / Aug 09, 2010 1:41pm

    phoebe_reed

    82 posts

    Hi,

    This is the exp tag I use on my simple search form:

    {exp:search:simple_form weblog="itc_blog|itc_news|itc_events|argiculture_farm_machinery" form_class="search clearfix"  form_id="hdr_search" result_page="/site/search_results"}

    You will see that I include form_id and form_class which I need for CSS reasons.

    Included below is my source code on the form that displays on the page. You will see lack of class or id information, and sure enough, none of the style I need with this form is activated. 

    Please tell me how to give my form a class and id - I must be doing something wrong, but I followed the parameters in the user guide.  Thanks!-Phoebe

    <form method="post" action="http://192.168.1.28/en/index.php"  >
    <div class='hiddenFields'>
    <input type="hidden" name="ACT" value="19" />
    <input type="hidden" name="XID" value="9415413eb77c3512cb8efcf7ad7580260fce90b8" />
    <input type="hidden" name="RP" value="/;site/;search_results" />
    <input type="hidden" name="NRP" value="" />
    <input type="hidden" name="RES" value="" />
    <input type="hidden" name="status" value="" />
    <input type="hidden" name="weblog" value="itc_blog|itc_news|itc_events|argiculture_farm_machinery" />
    <input type="hidden" name="search_in" value="" />
    <input type="hidden" name="where" value="all" />
    <input type="hidden" name="site_id" value="1" />
    </div>
    
    
    <label for="keywords">Search:</label>
    
    <input type="text" name="keywords" id="keywords" class="txt search"  value="" size="18" maxlength="100" /></p>
    <input type="submit" value="Search" class="btn" /></p>
    
    </form>
  • #2 / Aug 09, 2010 4:31pm

    Ingmar

    29245 posts

    Included below is my source code on the form that displays on the page. You will see lack of class or id information, and sure enough, none of the style I need with this form is activated.

    Please try id=“search_form” or name=“search_form”.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases