Date time validation

Hello i need some help with my validation on my Date time currently i have


Currently i have wrote on my validate a rule to this property

However when i try to enter previous date there isnt any error appear why is this so ?

my user request to not accept any date other than today to future days

@Tingw16594322 Could you let us know how/when is the validate rule invoked?

@BhanuPrakash_G

i created a new validate rule using my property

where this property name is call

What i wan is when the user selected pass date other than today date it will trigger the error message

@Tingw16594322 There are two appraoches I can think of

  1. On change of Effective date call an activity which would invoke the validate rule using method (obj-validate)

  2. Make use of ootb edit validate rule IsFutureDate on the EffectiveDate property rule form. Please see below image for reference

@Tingw16594322 Hi,

Can you let us know if you are using this in the Case or is it used in any section which is not part of a case? Because i see you are using a temporary page as context for the property, the error might get set in the temporary page only and if you are using this validate rule as a part of the case and expecting the Error to occur in pyWorkPage it wont work since you are giving a different context for your error. Please check the clipboard if the error is getting set on “TempBlackListPage” if yes then your validate rule is working fine its just that you need to set this error on pyWorkPage through and activity/DT instead of invoking this in Validate of Flowaction.

Note: Please check if this property is available in pyWorkPage, so that you can directly use the validate rule

@BhanuPrakash_G

Currently is future will display the error however i cant set it as today also anyway i can set it as today and pass will get this error message ?