AnsweredAssumed Answered

Form Field Date: How to Change the Placeholder?

Question asked by b3fb8a2f7e42549e1865837772b4faf663a87a71 on May 7, 2018
Latest reply on May 7, 2018 by b3fb8a2f7e42549e1865837772b4faf663a87a71

Hi all,

 

I'm currently working on a project that includes Field Date on the form.
I'm trying to change the placeholder of the Field Date and I included this code on the CSS.

 

 

input[type="date"]:before {

    content: attr(placeholder) !important;

  }

  input[type="date"]:focus:before,

  input[type="date"]:valid:before {

    content: "Date of Birth" !important;

  }

 

It's working but the mm/dd/yyyy is still on the field and the placeholder is not working in firefox.

 

Does anyone have a solution for this?

 

Thank you!

Outcomes