+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Placeholder attribute on form input fields

Placeholder attribute on form input fields

4 posts, 0 answered
  1. Roger
    Roger avatar
    3 posts
    Registered:
    10 Oct 2011
    10 Oct 2011
    Link to this post
    More and more browsers are starting to support the "placeholder" attribute on form input fields. Is there currently a way to apply this property to fields via the Form content type and if not, are there any plans to add this? It would be really helpful.
  2. Pavel Iliev
    Pavel Iliev avatar
    140 posts
    Registered:
    18 Jul 2016
    13 Oct 2011
    Link to this post
    Hello Roger,

    Currently we're not supporting HTML5 tags out of the box. You can inherit from our widgets and create your own that support such and then set the doctype in the master page.

    Best wishes,
    Pavel Iliev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. KC
    KC avatar
    9 posts
    Registered:
    10 Apr 2014
    20 Nov 2014 in reply to Pavel Iliev
    Link to this post

    Pavel,

    Does Sitefinity support HTML5 tags such as Placeholder yet? If so I can not find any documentation for it and would appreciate it if you could point me in the right direction.

    Thanks.

  4. Nikola Zagorchev
    Nikola Zagorchev avatar
    424 posts
    Registered:
    08 Dec 2016
    25 Nov 2014
    Link to this post
    Hi,

    Unfortunately, we currently does not provide an option to set the placeholder out of the box. We use the default asp net textbox which by default does not have the placeholder property, however, it could be set client side on the generated input element. You should create a custom formtextbox control and extend it to persist a placeholder property and pass it to the descriptor, so it could be used to set it client side.

    Regards,
    Nikola Zagorchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
4 posts, 0 answered