Skip to main content
May 13, 2024
Question

Date time component in interface

  • May 13, 2024
  • 10 replies
  • 0 views

Hi All,

I am using a date time component inside the interface. But it also accepting the special characters if we enter manually. After submitting, it is displaying the system date.

Eg: I gave 12/06/2024* 5:00 PM. After submitting it is displaying system date and time. Is there any way to restrict the user entering the special characters inside a date time component or show any validation message based on some condition. 

It would be very helpful if I could able to achieve

Thanks

    10 replies

    mikes0011
    Brainy
    May 13, 2024

    If you can reproduce that behavior readily, you should open a support case with Appian and report it as unintended behavior (and possibly as a bug).

    stefanhelzle0001
    May 13, 2024

    If I try this, the date time fields just does not accept my entered values.

    You wrote: "After submitting, it is displaying the system date". What exactly do you mean with "it" and "system time"?

    May 14, 2024

    We have written a code to display the value as some default date if the value is null. Is there a way to restrict the user entering special characters inside a date time component ?

    shubhama926776
    May 14, 2024

    [mention:7436b3a6d15f4560acf337c66a6d379a:e9ed411860ed4f2ba0265705b8793d05] Could you help us with code snippet?