24
Views
6
Comments
Solved
assign blank value to date

Hi All,

I want to assign blank value to date input associated with datepicker if it is futuredate.

Onchange of input user can edit the date .

The validation is coming  for future date but I want to blank out the input if its future date.

I have tried 

But it is not working.

My Input field is of type date.

Without making it text,can I achieve that.

Solution

This is resolved with datepicker clear  action,Thank you

Hi Ujwala,

Is it Reactive or Traditional?

Regards,

Komal

Hi Komal,Its reactive,

Validation is working but i want to display the input as blank after validation,Setting nulldate is not blanking it out

HI,

I have attached OML here,

You will find it in DateDEmo Screen.

Reagrds,

Komal

DateDemo_s.oml

Hii Ujwala,

Create an on change action of input and check the date user picked 

If date > CurrDate() then assign the variable NullDate().

and also make the valid property of widget = False and Validation message = date cannot be in future.

Thanks 

Anees


Champion

Hi @ujwala T 

Try to make InitialDate as null date of date picker when dateofbirth has future date.

Thanks

ARUN

Solution

This is resolved with datepicker clear  action,Thank you

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