All Collections
Building Your Form
Fields
How to Create a Due Date Field
How to Create a Due Date Field

Use formulas and validations to set a certain date as a due date

Mayakrishnan Ramar avatar
Written by Mayakrishnan Ramar
Updated over a week ago

Video not loading? Try this link

Sometimes you may want to create a field that has the due date for a project. For example, you may want the Due Date to be four days after an item is created.

You can do this by simply adding a date field. We can call it Due Date. Make it a computed field and write in this formula:

CreatedAt+4

When you look at the form, it will automatically display the due date. 

Now, suppose instead of just displaying a due date, you want your users to choose a date, but you want it to be less than four days in the future.

I’ll make another date field. Let’s call this one “Target Date”. Now, I’ll add a validation that this field should be before the date that is on the Due Date field. 

If you want the date to be more than 4 days in the future, you can just select “after the date”. 

I can also make a customer error message if the validation is not met. In the Permissions section, I’ll hide the due date. Here’s what it looks like in the form. My error message will show if I choose a date farther than four days in the future.

Did this answer your question?