Skip to main content
August 16, 2021
Question

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

  • August 16, 2021
  • 10 replies
  • 0 views

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
    August 16, 2021

    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
    August 16, 2021

    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
    August 16, 2021

    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