Try our conversational search powered by Generative AI!

Custom Form Container - Adding DIV tag between the form elements label and the field

Vote:
 

Hi,

I have followed the (world.episerver.com/documentation/developer-guides/forms/rendering-a-multi-column-form-container-block/) reference to create a form container, and am trying to customise the look of the form.

Based on the documentation for "Rendering a multi-column form container block" under CMS 11.5 Developer Guides - Forms,

I have created a html helper RenderFormElements, and am looking to add custom div tags between the label and fields of a form element.

I understand that html.RenderContentData(content, false); is the function which returns the html details. HTMLHelper for RenderContentData could be the solution, but I need the content present in RenderContentData function. How can I get the original code for this function to write a htmlhelper class? Or is there a better way to achieve the ask?

#223664
Jun 02, 2020 7:45
* 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.