Label without input element doesn't make much sense.
You should use p
or span
instead.
To create a custom form element, you can create a class that inherits from ElementBlockBase
and decorate it with ContentType
attribute.
You can then create a view, and register it in TemplateCoordinator
(ref. Alloy).
To hide Label
and Tooltip
properties in edit mode, you can do something like this:
[ScaffoldColumn(false)]
public new virtual string Label { get; set; }
[ScaffoldColumn(false)]
public new virtual string Description { get; set; }
I don't have access to the backend system to edit the code of the backend. I know that it might not make sense, but for example if I want to write some information text without the need of input like the example below:
*An email will be sent to you after sumbitting this form.
Episerver Forms comes with a block element called Rich text (with placeholders).
Does that work for you?
Edit: This information is incorrect (see below), reply edited.
Dejan, the Rich Text is an input element, which is a bad semantic choice for this. It seems OP is asking for a way to place a non-editable text element in-between form elements.
Unfortunately, Forms doesn't have this capability out-of-the-box. Your alternatives are:
Arild, that's exactly what rich text element does. It renders DIV/paragraphs, not an input element.
Dang Dejan, you are right, and I am wrong - confused it with the textarea element! I blame Mondays.
Hi,
I wonder how to place a label without a text area in EPI server forms, just a text label, any idea? Also I wonder why my captcha is letters not a check box? My episerver is 7.5