Conditional formatting on forms
Hello, I have a PTO request form. I am trying to get it so that if someone enters an impossible date (such as an end date before the PTO start date) that it does not allow completion but instead asks the user to confirm they mean that date. Is this possible please? cheers matthijs
Answers
-
If you were to use Dynamic View, then you could put in a way (formula) to show whether the date entered caused a conflict such as the one you described and then they could edit it as they're entering their new row to the sheet.
However, with a form what you'll have to do is set up a formula which helps to determine is there's a conflict and if so then have an automation use a Request an Update action to send them an email alert advising a new date needs selected.
-
@Matthijs Schoots , playing off the idea from @Mike TV , you could create a simple checkbox column. You could use a formula to check the box if the Start Date is after the End Date.
=IF([Start TEST]@row > [End TEST]@row, 1)
You'll then need an Automation to run when rows are add/changed and that checkbox column is checked to send an Update Request.
Note: You'll need to make sure that you don't have Dependency Settings on (predecessors, duration, primarily used for Gantt view). If those settings are on, the sheet will change the Start Date to match the End Date because it won't allow a start date after an end date.
Amber Eakin, MSLS, M.Ed.
Adult Education Specialist | Process Improvement Enthusiast
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives