0

I'm quite new in Drupal and I have to create a register form with dropdown lists like (Country->Province->City) but I can not use javascript, jquery or ajax due to accessibility issues. Is there any way to create it?

Some tips are welcome!

  • 2
    It is not possible to build dependent select lists without javascript. – ya.teck Oct 31 '13 at 13:56
0

No, not really. JavaScript is the only way to have content (including forms) change on a page without relaod. Now you have two ways to go around it:

  1. Make all choices available in all 3 downloads and only hide unneeded ones using JavaScript. That way if someone will not have JS enabled, he will see all choices and will be able to make his selection. Don't forget to test if his selection is sane on the server side!

  2. Use multi-step form. See this question and accepted answer. That way you will be able to ask one thing at a time, serving new steps using good old HTTP.

  • In my case, I could reload the page or create a "refresh button". By refreshing the page, is there any another method? The last option would be the multi-step form. – Luismin Oct 31 '13 at 15:15
  • @Luismin If you can reload page, then multistep is for you. just make other fields appear on all steps. That'll do it. – Mołot Oct 31 '13 at 15:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.