Join us this Friday for AI in Action at the Virtual Happy Hour! This free virtual event is open to all—enroll now on Academy and don’t miss out.

 

How to create a custom Form Element

Vote:
 

Could you please suggest to me to implement a custom episerver form element that allows multiple selection. like a Multi-select dropdown with validation.

#309557
Sep 26, 2023 16:47
Vote:
 
#309831
Oct 02, 2023 6:53
Kumar - Oct 03, 2023 7:11
Thanks, Eric for your response. I'm looking for how to create custom element not a form container.
Eric Herlitz - Oct 03, 2023 7:38
A custom form block equals a custom element
Vote:
 

You can find information about creating a custom form element block here:

https://docs.developers.optimizely.com/content-management-system/v1.2.0-forms/docs/creating-form-element-with-validator

As you're looking for multi-select capabilities, it might be worth having your element inherit from ChoiceElementBlock rather than ValidatableElementBlockBase.

#309899
Oct 03, 2023 13:48
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.