Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jeroen Roscam 13 posts 113 karma points
    Oct 01, 2018 @ 13:05
    Jeroen Roscam
    0

    Hiding fieldtype labels

    Hello folks,

    I would like to hide question-labels in my forms, and use placeholders instead. Not for all labels, only those of certain fieldtypes (like textfield). And only on the frontend. I want to keep the labels working in the output.

    I did get the placeholder containing the label/Caption working. But I couldn't remove the label itself. I tried using css in fieldtype.Textfield.cshtml, but I couldn't get it to work.

    Has anybody got any suggestions? A complicating factor is - I realize - that only using placeholders might not be good for screenreaders. Would there be a way to negate that?

    Best, Jeroen

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Oct 06, 2018 @ 21:53
    Alex Skrypnyk
    0

    Hi Jeroen

    You can create custom Umbraco form theme with the needed design. So you can hide labels and show only placeholders. Check out how to make a theme - https://our.umbraco.com/documentation/Add-ons/UmbracoForms/Developer/Themes/

    Thanks,

    Oleksandr Skrypnyk

  • Jeroen Roscam 13 posts 113 karma points
    Oct 12, 2018 @ 06:22
    Jeroen Roscam
    0

    Thanks for the reply. I am already using themes. But it is not clear to me how/if I could hide labels. Preferably while still alowing screenreaders to see the question.

    Best, Jeroen

Please Sign in or register to post replies

Write your reply to:

Draft