952
Views
7
Comments
How to start with a Date type on blank?
Question

Hi,


I was searching in the forums a way to have an input that receive a Date type variable, with the Date on blank when i enter in the Screen and i found this: data-blank-field = True on the Extended Properties of the input. I tried to apply it but didn´t work. 

I am using a Date Picker for a input.


Am I doing anything wrong?


Pedro Santos

2020-10-02 21-47-41
Samuel Nunes Marques

Hi Pedro Santos,

Not sure if I understood your question, but my guess it's that you just need to put the value "#1900-01-01#" in the Null Value property of your input. 

Thanks,
Samuel

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Please use NullDate() instead of #1900-01-01#!

2019-06-03 19-36-49
Pedro Santos

Hi everybody,


Sorry, i explained badly. 

I have this screen and when i enter i have already the dates displayed in the inputs. I want the inputs in blank.

Thank you,


Pedro Santos

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Pedro,

If you have already dates in there, that means that you have already assigned a value to the Variables bound to the Input Widgets. Check what Variables are used for those Inputs, and check where they are assigned a value.

2021-08-12 11-00-27
Nordin Ahdi
 
MVP

Hi Pedro,

There is a session variable "Session.DateStart" bound to your DateStart input. 

Like Kilian says, check to see where you assign the value to that session variable as it will hold the value assigned to it throughout the session. You need to decide when is the right moment to clear the variable by assinging NullDate() to it. 

Additionally, like Samuel says, in order to have a blank input you also need to set the Null Value property of your input with NullDate().

Regards,

Nordin

2020-02-28 09-46-54
Eduardo Jauch

I would start by asking why are you using a Session variable if you want to have a blank date when you enter the screen... :)

UserImage.jpg
Nikhil Ashodariya

Hi Pedro, 

I think in extended properties you can put value = "". and in placeholder the value u want 

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