98
Views
2
Comments
Change date field default placeholder blank
Application Type
Reactive

Hi, 

I am trying to clear the default placeholder seen below. When I attempt to use "Prompt" it does not change the value. 



I would appreciate any help or guidance I can get. 

Regards, 

Tenisha Lovell

2022-07-22 08-49-20
Laura Fidalgo

Hey,

That is caused by the browser. It recognizes that you're using a date type input, and that's also why you get a calendar without using the calendar widget.

If you want to change the default placeholder, you'll need to change the input type to text, and work around it, using the calendar widget.

Cheers

2023-10-21 19-42-11
Tousif Khan
Champion

Hello

You have to put this JavaScript on your OnReady  Screen Event

document.getElementById($parameters.ElementId).value = '';

Edit: Check this if it helps - 

I hope this helps.https://www.outsystems.com/forums/discussion/78509/datepicker-reset-selected-dates-within-widget-using-client-action/

Thanks

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.