Forum Discussion

Chris Cundy's avatar
Chris Cundy
Brass Contributor
Jun 22, 2021

Conditionally require column based on value of another

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 🙂

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

     


    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.

    • Harris0261's avatar
      Harris0261
      Copper Contributor

      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.

      • ganeshsanap's avatar
        ganeshsanap
        MVP

        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.

Resources