Forum Discussion
Conditionally require column based on value of another
ganeshsanap Thanks for your update. my case is a bid different. for instance you have used Resolved in ur example, but my case is Resolved and In Progress. If the users select either Resolved or In Progress the other column should become require field. Can you please help with this one. I have used && or AND, none of them works.
Harris0261 Use formula like below:
=IF(OR([Status] = "In Progress", [Status] = "Resolved"), IF(ISBLANK([Resolution Type]), false, true), true)
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.
- CSimms81Apr 05, 2022Copper Contributor
ganeshsanap how can I write the code if I have multiple status drop downs that need to have different columns. For instance:
Status "Under Review" needs to display the field "Request Initiated Close Date" and if
status "Case Opened" need to display the field "Under Review Close Date" and if
status "Resolution in Progress" need to display the field "Case Opened Close Date"
I've been trying for hours to get this to work. Any help would be greatly appreciated.
- CSimms81Apr 05, 2022Copper ContributorI currently have:
=IF(OR([Status] = "Under Review", [Status] = "Waiting for Customer"), IF(ISBLANK([Request Initiated Close Date])OR([Status] = "Case Opened", IF(ISBLANK([Under Review Close Date])OR([Status] = "Resolution in Progress", IF(ISBLANK([Case Opened Close Date]) false, true), true)
- kott2005Aug 22, 2023Copper Contributor
Thanks for your answer.
I have a column called 'Status' with two values - Completed and Not Completed.
Depending on 'Status' column value if it is "Completed", I need to auto populate another column which is a date column called " Completed Date" How can I populate today's date ?
- ganeshsanapAug 23, 2023MVP
kott2005 If you want to store the date on which day the status is changed to "Completed", you can do it using:
- Power Apps: Customize SharePoint list form using Power Apps and set date column value using Power Apps formulas when status changes to Completed
- Power Automate: Run Power Automate flow on item change (When item is modified trigger). Add trigger condition to run the flow only when the completed date is null/empty. Inside flow, you can check if the status is equal to completed, use update item action to update the completed date column to current date - utcNow().
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.
- richzip505Dec 15, 2024Copper Contributor
Hello, I am trying to solve a similar issue, and modified the formula above for my needs. I noticed in a different thread, it was stated to set this up under "list validation settings" and not "column validation settings". However, when I go to Settings/List Settings, I don't have an option for "validation settings". Am I looking in the wrong place?