Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2009
    Posts
    64
    Plugin Contributions
    0

    Default Weird Extra Field in Form

    In my log in / create account page at https://www.phoenixwoodworks.net/sto...ain_page=login have a weird extra field after the drop down selector for STATE. Can't inspect it in Firebug. Can't enter text. Cursor won't focus on click. LOOKS like an input field but does not act like one.

    Probably an open tag or stray bit of code that the browser does not know how to deal with. Here's the pertinent portion of my tpl_modules_create_account.php.
    Code:
    <?php
      if (ACCOUNT_STATE == 'true') {
        if ($flag_show_pulldown_states == true) {
    ?>
    <label class="inputLabel" for="stateZone" id="zoneLabel"><?php echo ENTRY_STATE; ?></label>
    <?php
          echo zen_draw_pull_down_menu('zone_id', zen_prepare_country_zones_pull_down($selected_country), $zone_id, 'id="stateZone"');
          if (zen_not_null(ENTRY_STATE_TEXT)) echo '&nbsp;<span class="alert">' . ENTRY_STATE_TEXT . '</span>'; 
        }
    ?>
    
    <?php if ($flag_show_pulldown_states == true) { ?>
    <br class="clearBoth" id="stBreak" />
    <?php } ?>
    <label class="inputLabel" for="state" id="stateLabel"><?php echo $state_field_label; ?></label>
    <?php
        echo zen_draw_input_field('state', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_state', '40') . ' id="state"');
        if (zen_not_null(ENTRY_STATE_TEXT)) echo '&nbsp;<span class="alert" id="stText">' . ENTRY_STATE_TEXT . '</span>';
        
    ?>
    <br class="clearBoth" />
    <?php
      }
    ?>
    I've searched and searched for the problem and cannot find the answer. Would welcome fresh eyes.

    Thanks
    Fine Handcrafted Boxes & Custom Woodworking
    bruce AT phoenixwoodworks DOT net
    http://www.phoenixwoodworks.net

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Weird Extra Field in Form

    Try adding to your stylesheet.css
    .hiddenField {
    display: none;
    }
    .visibleField {
    display: inline;
    }
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Jan 2009
    Posts
    64
    Plugin Contributions
    0

    Default Re: Weird Extra Field in Form

    That dood it! Seems strange to need to specify not to show hidden fields. Another technological marvel. And they must be hidden indeed, since I could find no trace of any.

    Thanks so much for your speedy, simple, and on target response.
    Fine Handcrafted Boxes & Custom Woodworking
    bruce AT phoenixwoodworks DOT net
    http://www.phoenixwoodworks.net

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Weird Extra Field in Form

    The State can be either a dropdown or input box and when the dropdown is showing it needs to hide the input box ... you were just missing the classes to do this ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Jan 2009
    Posts
    64
    Plugin Contributions
    0

    Default Re: Weird Extra Field in Form

    Thanks for that clarification. It makes me feel slightly less stupid as I was floundering around in that general direction. Was trying to edit the create account template file to accomplish that, but in my vast and overwhelming ignorance just kept balling it up.

    Thanks again for your help. You're my hero!
    Fine Handcrafted Boxes & Custom Woodworking
    bruce AT phoenixwoodworks DOT net
    http://www.phoenixwoodworks.net

 

 

Similar Threads

  1. Replies: 6
    Last Post: 24 Nov 2022, 08:51 PM
  2. extra text field in contact us form
    By medeano in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 20 Nov 2010, 10:36 PM
  3. Extra Field
    By mipavluk in forum General Questions
    Replies: 4
    Last Post: 24 May 2008, 03:30 AM
  4. Weird behavior with State field
    By earmsby in forum Managing Customers and Orders
    Replies: 4
    Last Post: 29 Feb 2008, 07:24 PM
  5. Weird thing with state drop down field
    By kappaluppa in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 23 Apr 2007, 05:31 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg