I am new in Drupal...

In webforms I use Number field to set age of person:

How old are you? [Number] /min 10, max 100/

When did you smoke for the first time? [Number] /min 10, max here should be the value of the previous number.

Is it possible to set it somehow in Webform GUI, or the only by the code?



You might try making the age a drop-down with the given range and then webform conditional becomes an easy, ready to use option.

Many other ways to get this done but this is probably the most straightforward imho.

  • the most important part for me is, that there are more ways than none. I do not want to exploit the people here, I will try myself to find out. Thanx – lyborko May 29 '17 at 19:02
  • In that case, the drop down is one. ;) Others involve additional modules and/or code depending on particulars. Happy to take the answer further if it helps. – Adam John May 29 '17 at 19:05

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.