Form Control

Witchayanin Maythangkul asked on August 28, 2014 09:18

I have 2 custom form control (DropDownList) in document type

1.Zone 2.Province

how to get value of custom form control Zone in Province

thank you

Recent Answers


Charles Matvchuk answered on August 28, 2014 15:57

It sounds like to me that you are attempting to use cascading drop down lists, where by you filter one drop down list by the selection of another. Correct me if I am wrong.

I recommend creating a custom control with both drop down lists and do you logic and filtering with ajax.

0 votesVote for this answer Mark as a Correct answer

Joshua Adams answered on August 28, 2014 16:22

I haven't tried this but you may be able to set the sql query to have a where clause using a macro that contains the value of the other field. If you set up your depending field attributes as well and set the visible property to a macro, you can only show one and then the other will load in after the first is selected. Theoretically this should work, but I haven't actually tried that. Wouldn't take much time to set up and if it doesn't work, then go the custom form control route.

0 votesVote for this answer Mark as a Correct answer

Delford Chaffin answered on August 29, 2014 03:37

Joshua,

I have tried that method before and was unsuccessful - I remember being extremely disappointed that those dependent field settings didn't work the way I had hoped. I too believe it'll need to be a custom form element of some type.

8: https://docs.kentico.com/display/K8/Developing+form+controls 7: http://devnet.kentico.com/docs/7_0/devguide/index.html?developing_form_controls.htm

0 votesVote for this answer Mark as a Correct answer

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