Skip to main content
Known Participant
Aug 16, 2021 3:02 PM UTC
Question

how to default time in date time field on page load.

I have a requirement to show the default time for eg 12:00 Am in the date-time component when the page gets loaded.

Date should be blank .

    10 replies

    mikes0011
    Brainy
    Aug 16, 2021 4:01 PM UTC

    Where is the "page" and what is it doing?  Is this a form where a user will be able to make edits, or display-only?  The way you would pre-populate such data depends on these details you didn't include.

    The Expression Guru
    Known Participant
    Aug 16, 2021 6:07 PM UTC

    thank you for your quick response. Yes, we allow users to edit this date-time field. we have this field in the form 

    mikes0011
    Brainy
    Aug 16, 2021 6:08 PM UTC

    Then in your process flow prior to reaching the form, use a script task to prepopulate the PV with the data you want, prior to passing it into the SAIL form in the user input task node.

    The Expression Guru