Work with dates in Form Design
Overview
Use a function or a hidden control to hide a button if a date on a form is not valid.
Details
Comparing the values of date controls in Form Design can be tricky. Here are some tips to help you get the results you want.
In this example we want to hide a button if the user enters an invalid date. Rules require the date to be 10/1/2016 or greater before the buttons 4 and 5 can be shown.
![]() |
![]() |
Option 1 - Use DateFor function
Use the DateFor function to specify the date to check against. TierButton4 uses this option in its Validation as shown below.

Option 2 - Use a hidden control
Create a TierEdit on the Invisibles tab which holds the date you want to check against. TierButton5 uses this option in its Validation as shown below.
![]() |
![]() |
Using either of these options in conjunction with the Hide on Validation setting will produce the desired results. The advantage to Option 2 is that there is only one place you need to change the date if this is used on more than one date control on the form, rather than looking for all of the DateFor functions.




