Default to Empty Controls\Calendar 

Default to Empty Controls\Calendar 

  

Hi,

I am facing strange issue.

I am using Controls\Calendar webblock for input box. I didn't specified initial data.

By default i am getting current date. I want to display blank for that text box. 

Can anyone help me in resolving this issue?







Hi Sekar,

This indeed looks like a bug. Whe nyo set everything to NullDate(), the fields is still loaded as current date.

Maybe OutSystems can help out in this case.

Kind regards,

Remco Dekkinga

Hi Remco,

Thanks for the reply, 

I am planning to clear textbox value in jQuery document ready

Do you have any alternate solution to fix this?

If i use RichWidgets calendar blank is working fine. But that one doesn't come with my theme. so i don't want use that.



Hi Sekar,

I don't have a ready to use solution for you. I've forwarded your question to OutSystems and hopefully they will answer your question here soon.

Kind regards,

Remco Dekkinga


Hey Sekar,

Do you have the most recent version of Silk Web? Directly from the last release notes :)

  • "Added the feature of having a blank Calendar input until a date is selected and of clearing Calendar input values after selection.
    • To use this feature, select the Input Text associated with the Calendar and add the Extended Property data-blank-field with the value True."

Right now, if I'm not mistaken, it will show you what you have on placeholder. So, for example, if you have DD/MM/YYYY in your server, it will show you that instead of the current date. 

Hope this helps and let me know if it doesn't!

Solution

Got response from Out system support

we need to set data-blank-field = True in calendar input box extend properties

Solution