Is there a way to check for a day of week in the user input task using the date

Is there a way to check for a day of week in the user input task using the date picker on a date and time field? I need a javascript that can be used as part of an Event Rule for a date and time field. Something like:

If the datetime field is a Saturday or Sunday - show the message field, else hide the message field. I'm not using SAIL. I'm using the process modeler - designer portal.

OriginalPostID-175606

OriginalPostID-175606

  Discussion posts and replies are publicly visible

Parents
  • I need to be able to check dynamically in an user input form for a Saturday or Sunday being selected using the date picker on that date and time field. If the user selects either of these days, I want a message field to display. So I need to set up an Event Rule on the Date field. Do you have a sample of a javascript that I can use that will show a message field if the user selects a Saturday or Sunday?

    Does the weekday functions do not work dynamically in a form when a user is selecting or entering a date. If so, please give me a sample expression of how this can be done. Thanks...
Reply
  • I need to be able to check dynamically in an user input form for a Saturday or Sunday being selected using the date picker on that date and time field. If the user selects either of these days, I want a message field to display. So I need to set up an Event Rule on the Date field. Do you have a sample of a javascript that I can use that will show a message field if the user selects a Saturday or Sunday?

    Does the weekday functions do not work dynamically in a form when a user is selecting or entering a date. If so, please give me a sample expression of how this can be done. Thanks...
Children
No Data