function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Diane RoyerDiane Royer 

Validation Rule in Screen Component Not Working

I am working on a flow that includes a screen component.  On that screen component, I need the user to select a date and time that is later than the time of an event.  I've tried a couple different validation rules.  However, each time I try to debug the flow and put in a time prior to the start of the event it accepts it.  What am I doing wrong?

The formulas I have tried are:
{Faculty Time!}>{Org_event_Start_Date_Time}
{Faculty Time!}-{Org_event_Start_Date_Time} >0

My event starts at 8:00AM and I want to prevent my users from inadvertently selecting a time prior to that.  How can I do that?
ShirishaShirisha (Salesforce Developers) 
Hi Diane,

Greetings!

Instead of the formula,can you please try by using the validation.If you have these fields on Object level then you can simply create the validation which prevents the user to enter greater than the event time.

I have created the validation rule in past and it worked as well.

Kindly let me know if it helps you and close your query by marking it as best answer so that it can help others in the future.

Warm Regards,
Shirisha Pathuri
Diane RoyerDiane Royer
How would you set up the validation rule?  That is the section I'm in where I'm trying to enter the formula to check the date.