15
Views
2
Comments
Solved
Prompt in DateTime input

Hi Community,

I want to add placeholder in DateTime input field but unable to add.



Thanks In Advance 

Regards

Piya

Rank: #90
Solution

Hi Piya,

Use this css

input.empty-input::before {
 width: 100%;
    content: attr(placeholder);
    color: #bfbdbd;
    -webkit-appearance: none;
}

and add condition in style class property like

If(DateVar= NullDate(),"empty-input","form-control")



Output-


Hope this will help you.


Regards

Rahul

Rank: #34629

Thanks Rahul,