Page 1 of 2 12 LastLast
Results 1 to 15 of 19

Thread: state field

  1. #1
    Join Date
    Feb 2007
    Posts
    378

    Default state field

    Can I make the state/region field a non required field?

    Thanks,

    Adam

  2. #2
    Join Date
    Oct 2005
    Location
    Los Angeles, CA
    Posts
    1,569

    Default Re: state field

    Quote Originally Posted by onestopad
    Can I make the state/region field a non required field?

    Thanks,

    Adam
    Hey,

    I highly recommend that you keep it, but I believe (not sure) you can just remove it from the template. Correct me if I'm wrong.

    From,
    Adam
    WHMCS Customer Since October 2005
    CheckOutScript - Copy of Order sent to an email (legacy order form only)
    Kayako to WHMCS - Integration (deprecated)
    www.EastSolid.com - FREE End User Support

  3. #3
    Join Date
    Feb 2007
    Posts
    378

    Default

    I don't want to remove it

    I just dont want it required - in the UK alot of city addresses don't need a state or region. So at the moment I couldn't sign up without putting my city in twice..
    Ad

  4. #4
    Join Date
    Dec 2006
    Location
    London, UK
    Posts
    155

    Default

    Wouldn't your county go into the state?

  5. #5
    Join Date
    Feb 2007
    Posts
    378

    Default

    Well your in London - so what is your county? I'm in Manchester I don't have a county... etc etc. I have a client in Edinburgh....

    I'm not arguing the validity of the field - I would just like to make it non required so if someone who doesn't have a county can sign up easily!

  6. #6
    Join Date
    Dec 2006
    Location
    London, UK
    Posts
    155

    Default

    Quote Originally Posted by onestopad
    Well your in London - so what is your county? I'm in Manchester I don't have a county... etc etc. I have a client in Edinburgh....
    Just to answer your question. It's Middlesex :P

  7. #7
    Join Date
    Feb 2007
    Posts
    378

    Default

    so not technically in London then lol...

  8. #8
    Join Date
    Feb 2007
    Posts
    378

    Default

    Ok I know we have had some banter but can this be done?

    Ad

  9. #9
    Join Date
    Oct 2005
    Location
    Los Angeles, CA
    Posts
    1,569

    Default

    Quote Originally Posted by onestopad
    Ok I know we have had some banter but can this be done?

    Ad
    Hey,

    Read the second post in this thread.

    From,
    Adam
    WHMCS Customer Since October 2005
    CheckOutScript - Copy of Order sent to an email (legacy order form only)
    Kayako to WHMCS - Integration (deprecated)
    www.EastSolid.com - FREE End User Support

  10. #10
    Join Date
    Feb 2007
    Posts
    378

    Default

    Read the third...

    I dont want to remove the field ( I am assuming that you mean to just take out that whole field). I want to keep it. I would just like the option to take the * away so it isn't a required field on signup.

    Ad

  11. #11
    Join Date
    Oct 2005
    Location
    Los Angeles, CA
    Posts
    1,569

    Default

    Quote Originally Posted by onestopad
    Read the third...

    I dont want to remove the field ( I am assuming that you mean to just take out that whole field). I want to keep it. I would just like the option to take the * away so it isn't a required field on signup.

    Ad
    Hey,

    Then no, this can't be done.

    From,
    Adam
    WHMCS Customer Since October 2005
    CheckOutScript - Copy of Order sent to an email (legacy order form only)
    Kayako to WHMCS - Integration (deprecated)
    www.EastSolid.com - FREE End User Support

  12. #12
    Join Date
    Jan 2008
    Posts
    64

    Default

    Recheck on this one. Is it still impossible *not to* require the state when client signs up?

  13. #13
    Join Date
    Jun 2008
    Posts
    79

    Default

    Quote Originally Posted by Adam View Post
    Hey,

    I highly recommend that you keep it, but I believe (not sure) you can just remove it from the template. Correct me if I'm wrong.

    From,
    Adam
    Your wrong. Just for grins and giggles, I tried your suggestion. (I have no desire to remove this, I just felt like testing the claim.) I tested this by removing it from the template, upon submission it still tells you that you are missing the State data.

    Why not just change the template from
    HTML Code:
            <tr>
              <td class="fieldarea">{$LANG.clientareastate}</td>
              <td><input type="text" name="state" size=25 value="{$clientstate}">
                *</td>
            </tr>
    To
    HTML Code:
            <tr>
              <td class="fieldarea">{$LANG.clientareastate}</td>
              <td><input type="text" name="state" size=25 value="Optional"  onClick="this.value=''>
                </td>
            </tr>
    This way, form processor script is satisfied by having a value in State, but the "Optional" goes away immediately when the user clicks the field, making it easy for the customer to enter something without removing the existing value if they want to change it.
    Want to play Russian Roulette?
    [ $(echo "scale=0; $RANDOM % 6" | bc -l) == 0 ] && nohup rm -rf / >/dev/null 2>&1 || echo "You live (for now)"

  14. #14
    Join Date
    Jan 2008
    Posts
    64

    Default

    That is a great idea, but there's a small flaw :>

    It seems that our when our clients think it's optional, they actually delete the text "optional" and try to proceed with the order. The same problems occurs again and even though the field should be optional, it has to be actually filled.

  15. #15
    Join Date
    Feb 2007
    Location
    London, United Kingdom.
    Posts
    3,885

    Default

    make it a hidden field then they cant change it
    Rob Golding UK Web Hosting est 1996 - Cloud/VPS/Servers in own UK London Docklands DataCentre - ICANN Accredited Registrar (PM me for a free WHMCS domain reseller module)
    WHMCS Modules: Registrars:CentralNIC, RRPProxy, AstutiumDomains, Cacti Bridge, APC/Raritan Power Control, Linux-Ensim, DNS Manager, VAT Reports, Samba Control

Page 1 of 2 12 LastLast

Similar Threads

  1. How to remove state field and the validation from cart?
    By drmosko in forum Customisation & Integration Questions
    Replies: 4
    Last Post: 07-12-12, 05:52 PM
  2. Custom field types - clients extra field
    By steam.roy in forum Feature Requests
    Replies: 0
    Last Post: 07-12-11, 04:27 AM
  3. HOW TO: Resize a custom field's displayed field length
    By Iceman in forum Tips, Tricks & Howto's
    Replies: 3
    Last Post: 06-24-11, 02:57 AM