Expand my Community achievements bar.

Use of Business Rules to limit a date field selection

Avatar

Level 1
Is it possible, using business rules in WF, to not allow a requestor to enter a date within a couple of weeks of submitting a request? This will help reinforce SLAs.
5 Replies

Avatar

Community Advisor

Can you help explain why you decided to use business rules instead of validation logic? (see the below link for some examples:

https://experienceleaguecommunities.adobe.com/t5/workfront-discussions/validation-logic-in-custom-fo... ) 

 

Just wondering if there's a specific need for it to be a business rule.

Avatar

Level 1

Makes sense.  I'll go the validation logic route.

 

Avatar

Community Advisor

Kevin, one thing to note.  Your validation won't work within the Preview area of your form, you'll need to attach your form to a test object and then test the validation there to see if it renders what you need.  We have several of these types of date validations in our forms and that frustrated me the first time I did it cause nothing was showing in Preview 🤔

Avatar

Level 1

Thanks for the tip Kurt!

Avatar

Community Advisor

I think answer is Yes, you can setup such business rule. But I agree in a sense with Skye, using validation logic seems to be a better choice in this case unless there is some context to that.