Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Weird Extra Field in Form

Weird Extra Field in Form

Views: 1,018

Results 1 to 5 of 5
26 Mar 2011, 3:47 AM
#1
bigdiogi avatar

bigdiogi

New Zenner

Join Date:
Jan 2009
Posts:
59
Plugin Contributions:
0

Weird Extra Field in Form

In my log in / create account page at https://www.phoenixwoodworks.net/store/index.php?main_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.

<?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 ' <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 ' <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
[email protected]
http://www.phoenixwoodworks.net

26 Mar 2011, 4:32 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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!

26 Mar 2011, 5:13 AM
#3
bigdiogi avatar

bigdiogi

New Zenner

Join Date:
Jan 2009
Posts:
59
Plugin Contributions:
0

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
[email protected]
http://www.phoenixwoodworks.net

26 Mar 2011, 12:40 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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

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!

26 Mar 2011, 2:14 PM
#5
bigdiogi avatar

bigdiogi

New Zenner

Join Date:
Jan 2009
Posts:
59
Plugin Contributions:
0

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
[email protected]
http://www.phoenixwoodworks.net