DateTime Comparison

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.

image

Go to the Form Setup and disable the Standard Navigation. Save the Changes.

image

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}}

image

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.

image

Try the form.

image

It will show the navigation button only if the Start DateTime is before the End DateTime.

image
Example Form.json4.8KB

For any questions, please contact us - [email protected] or the Formyoula in-app chat 🙂