London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Episerver Forms: Cascading select form elements

Vote:
0

Hi,

We have a select form element where the options are dependent on a selected option in a former select. I expect that we're not the first ones with this issue. Has anyone come up with a good solution? Or know if this will be included in a coming version of forms. We are now stuck with forms 3, but are planning to upgrade.  

thanks, Asa

#171826
Nov 18, 2016 10:58
Vote:
0

I think you should build the custom element

 - Use standard optgroup https://developer.mozilla.org/en-US/docs/Web/HTML/Element/optgroup

 - or show 2 <select> tags, and depend on each other by some vanilla JS or jQuery plugin as you wish.

I think it is more complex (in Editor view) than benefit to have that cascading select form elements in Forms built-in.

#171880
Nov 21, 2016 9:00
Vote:
0

We are now stuck with forms 3, but are planning to upgrade.  

By the way, Forms 3 and 4 is 99% similar. Forms 4 improve (add one method to the base interface) to the validation service. So it is a fast-forward upgrade. Don't hesitate.

#171882
Nov 21, 2016 9:36
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.