25
Views
1
Comments
Solved
Input box for blank date shows MM/DD/YY
Question
Application Type
Reactive
Service Studio Version
11.54.56 (Build 63232)

I've read many forum responses to questions similar to this, but my requirements don't allow me to use many of them.

I have an audit form with many date input boxes. When adding or editing data on this form, most of the date fields are null until they get further into the audit. So all the null date fields show up as "MM/DD/YYYY"

The date picker won't work for me because the user must be allowed to type in the date without having to 'pick it'.

Changing the input to a text variable then doesn't allow the user to use a date picker if they wish, also a requirement. 

All I want is a null date to show as a blank. Can this be done?

2023-04-16 15-25-31
Krishnanand Pathak
Solution

Hi Jeff,


What we can do is to change the input field type at OnFocus & OnBlur using JS.
OnFocus change the type to Date
OnBlur change the type to text
Also call the same OnBlur action at OnReady

Then we can set the prompt like any text input type filed which can be "" or like "--select date--".

You can check the demo to see how it will work through below link.
https://personal-qmzjggmd.outsystemscloud.com/Com/SetPlacehoder?_ts=638498074501154918

Oml is also attached for reference.


Regards
Krishnanand Pathak

Set place holder date input.oml
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.