I'm going back on this thread because I have a slightly similar pbm.
First of all, the answer of RONANAUPETIT seems bizarre ... on my installation, the state field IS labelled as "required", but I do not understand why that would prevent me from suppressing the field from register.html ? because that would break some processing ? I'm supposing this is an english language problem, RONANAUPETIT meant that if I do not need the field I can erase it ?
My question now: yes the pbm with this field is that it is "required" so for french users it's a problem ... Is there a way to have a relation between the country and the state ? (if France is choosen, state not required ...). More simple, how do I make this field as not required without suppressing it ?
Hi, I think I'm misunderstanding or I didn't make myself clear. I do not want to suppress the state field, I want to make it "not required". My original question was "how do I make this field as not required without suppressing it ?" ... What you just suggested is completely removing that field, am I correct ?if yes, how do I make it not required ? Pierre
Hello, Ok I understand now what you meant and it's really what's needed ... but that means also that it does not work (for me at least), in my register page, whatever I select as a country, the field is required. For example if I go directly to the /register page, France is selected and Etat/Region is marked as required with a star. But I will test more in depth now that I know about how it is supposed to work and I will report back here. Thanks ! Pierre.
Hello, Ok I made some more tests and if I choose France I can submit the form without choosing a state which is the proper way I think. The only small problem is that "State" still has a "*" meaning it's mandatory ... From what I read in the code, "*" should be only if the $required variable exists:
Ok I did find the problem. I derived my templates from the "Zeste" template which might be too old to have integrated the needed js ... I copied the necessary js (at least my analysis was right on spot) and now it works as intented :-) Yeepee.