Enable form field from Dropdown

Michael Gralke Augusto asked on May 2, 2016 15:27

I have a form with a subject dropdown and need to enable some fields based on the selected value.

If I enter Subject.Value = 1 it works OK but there are some fields which dependend on more than condition e.g. Subject.Value = 1 OR Subject.Value = 2.

Tried many diferent possibilities to no avail, would appreciate some help, thanks.

Recent Answers


Jan Hermann answered on May 2, 2016 15:30

Use || instead of OR:

(Subject1.Value == 1 || Subject2.Value == 2)

2 votesVote for this answer Mark as a Correct answer

Michael Gralke Augusto answered on May 2, 2016 16:10

Many thanks for the ultraquick answer, that di the trick :)

0 votesVote for this answer Mark as a Correct answer

Michael Gralke Augusto answered on May 2, 2016 17:01

Sorry, just one more question:

Value in Dropdown is 1;Send Message etc.

When I send an E-Mail Notification I only get 1, any chance to get Send Message instead?

0 votesVote for this answer Mark as a Correct answer

Chetan Sharma answered on May 2, 2016 17:29

If possible can you use both value as a key/value. Kentico by default returns key. So may be you can change it like this

Send Message;Send Message

Possible?

0 votesVote for this answer Mark as a Correct answer

Jan Hermann answered on May 3, 2016 08:59

If the key and value match, you can specify just a value:

Send message
Other option
Another option
0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.