Try our conversational search powered by Generative AI!

Prompt/Watermark/Placeholder does not work for text area

Found in

EPiServer.CMS.UI 7.19.2

Fixed in

EPiServer.CMS.UI 9.3.4

(Or a related package)

Created

Nov 20, 2015

Updated

Dec 04, 2015

Area

CMS UI

State

Closed, Fixed and tested


Description

[Display(Prompt = "Enter your description here")]
public virtual string Description

{ get; set; }

Add the code above to any content type. Edit it and notice that "Enter your description here" is shown as placeholder text. Awesome!

Change the property to a text area, like this:

[UIHint(UIHint.Textarea)]
[Display(Prompt = "Enter your description here")]
public virtual string Description { get; set; }

Go back to edit and notice that the placeholder text is not shown any more.