Conditionally require column based on value of another

Contributor

Hello,

 

I have a status column in SharePoint Online and another column named "Resolution Type".

 

Both columns are of type "Choice".

 

What I want to do is that when Status is changed to "Resolved", a value from the "Resolution Type" will need to be selected before the form can be saved.

 

Any help, would be appreciated.

 

Thanks :)

5 Replies

@Chris Cundy Add list validation formula from List settings --> Validation settings. Set formula something like: 

 

=IF([Status] = "Resolved", IF(ISBLANK([Resolution Type]), false, true), true)

 

ganeshsanap_0-1624385631503.png


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.

@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.

@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.

I 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)