Mar 03 2024 04:13 AM
Hi,
Kindly assist how can I put column validation for my Start and End Date in My Sharepoint list for Single Text field. Below is my formula in PowerApps:
If(DateTimeValue(StartDate.Text)>=DateTimeValue(EndDate.Text))
Thanks
Mar 03 2024 07:50 AM
@geekcode0315 What exactly you want to do with the validation? Do you want to do it via Power Apps only or are you fine with SharePoint default suggestions as well?
You can directly apply the validation in SharePoint list validation settings as well without customizing the list form using Power Apps.
Use list validation formula like:
=DATEVALUE([End Date])>=DATEVALUE([Start Date])
Note:
Steps to add list validation settings at: How to have validation for SharePoint list columns?
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
Apr 22 2024 06:52 PM
@ganeshsanap Hi ganesh, Sorry for my late response but I tried the formula above prompted error as below. Thanks
Apr 23 2024 12:14 AM
I think you are adding this formula in column validation - However, you will have to use this formula in list validation settings.
So, try adding the formula in list validation settings by following the steps given in link I shared in above response.
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.