In this guide, we will explain how to compare two DateTime fields using the Field Update Workflow field. It will make sure that the Start DateTime is before the End DateTime.
Drag and drop two DateTime, a Fields Update Workflow and a Navigation field. Rename the fields as shown below.
Go to the Form Setup and disable the Standard Navigation. Save the Changes.
Click the pencil icon of the Field Update Workflow field and set the DateTime fields in Rule Criteria as shown below.
End DateTime || greater than || {{field Id of Start DateTime field}}
Start DateTime || less than || {{field Id of End DateTime field}}
Set Field Updates Success and Field Updates Fail to hide and unhide the navigation button. Save the changes.
It will hide the Navigation button if the Start DateTime is not before the End DateTime.
Try the form.
It will show the navigation button only if the Start DateTime is before the End DateTime.
For any questions, please contact us - [email protected] or the Formyoula in-app chat 🙂