Adamski Posted March 10, 2007 Share Posted March 10, 2007 Can I make the state/region field a non required field? Thanks, Adam 0 Quote Link to comment Share on other sites More sharing options...
Adam Posted March 10, 2007 Share Posted March 10, 2007 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 0 Quote Link to comment Share on other sites More sharing options...
Adamski Posted March 10, 2007 Author Share Posted March 10, 2007 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 0 Quote Link to comment Share on other sites More sharing options...
Jay Posted March 10, 2007 Share Posted March 10, 2007 Wouldn't your county go into the state? 0 Quote Link to comment Share on other sites More sharing options...
Adamski Posted March 10, 2007 Author Share Posted March 10, 2007 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! 0 Quote Link to comment Share on other sites More sharing options...
Jay Posted March 10, 2007 Share Posted March 10, 2007 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 0 Quote Link to comment Share on other sites More sharing options...
Adamski Posted March 10, 2007 Author Share Posted March 10, 2007 so not technically in London then lol... 0 Quote Link to comment Share on other sites More sharing options...
Adamski Posted March 14, 2007 Author Share Posted March 14, 2007 Ok I know we have had some banter but can this be done? Ad 0 Quote Link to comment Share on other sites More sharing options...
Adam Posted March 15, 2007 Share Posted March 15, 2007 Ok I know we have had some banter but can this be done? Ad Hey, Read the second post in this thread. From, Adam 0 Quote Link to comment Share on other sites More sharing options...
Adamski Posted March 15, 2007 Author Share Posted March 15, 2007 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 0 Quote Link to comment Share on other sites More sharing options...
Adam Posted March 15, 2007 Share Posted March 15, 2007 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 0 Quote Link to comment Share on other sites More sharing options...
Boston Posted November 13, 2008 Share Posted November 13, 2008 Recheck on this one. Is it still impossible *not to* require the state when client signs up? 0 Quote Link to comment Share on other sites More sharing options...
Drac0 Posted November 13, 2008 Share Posted November 13, 2008 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 <tr> <td class="fieldarea">{$LANG.clientareastate}</td> <td><input type="text" name="state" size=25 value="{$clientstate}"> *</td> </tr> To <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. 0 Quote Link to comment Share on other sites More sharing options...
Boston Posted November 13, 2008 Share Posted November 13, 2008 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. 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted November 14, 2008 Share Posted November 14, 2008 make it a hidden field then they cant change it 0 Quote Link to comment Share on other sites More sharing options...
Drac0 Posted November 14, 2008 Share Posted November 14, 2008 True, but in the event that it would be a valid field, the end user can't use it either. But then again with the existence of postal codes, there's really no need to even have city or state. Not sure how it is over there... But I could send a letter by post to street address and zip code and it will get there just as efficiently as it would with the city and state too. 0 Quote Link to comment Share on other sites More sharing options...
Boston Posted November 14, 2008 Share Posted November 14, 2008 Thanks othellotech, I think I succeeded doing it. 0 Quote Link to comment Share on other sites More sharing options...
handsonwebhosting Posted November 14, 2008 Share Posted November 14, 2008 Put an if statement.. if country equals United States, then show state. Else make it hidden. OR if you really wanted - instead of Optional, put "n/a" - most people leave that alone Should be possible. 0 Quote Link to comment Share on other sites More sharing options...
Dids Posted February 3, 2009 Share Posted February 3, 2009 Sorry to bring up this somewhat old topic. I'm trying to achieve the same thing, but with both state and country (since I'm only allowing clients from my country). Which files contain these specific fields? Tried searching, but couldn't find them. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.