Nov 03 2023 06:57 AM
I have an Asset SharePoint list that has a status column. The column values are Active, Sold, Disposed. If the status is Sold or Disposed, I want the date column "Out of Service" to be required.
I tried entering this into the Validation Setting, but I keep getting the "Sorry., something went wrong.." message.
=IF(AND(OR([Status]="Sold",[Status]="Disposed"),ISBLANK([OutOfService]),TRUE,TRUE),FALSE)
Obviously, I have the statement incorrect. Any help would be greatly appreciated!!
Nov 05 2023 08:12 AM
Hi @Annette1101 - To have a column be conditionally required, you'll need to add a custom form or canvas app to the list. You can check out:
http://powerappsguide.com/blog/post/forms-how-to-conditionally-make-form-fields-mandatory
and
Hope that helps!
Nov 07 2023 04:54 AM
Solution@Annette1101 Use list validation formula like this:
=IF(OR([Status]="Sold",[Status]="Disposed"),NOT(ISBLANK([OutOfService])),TRUE)
You have to use above formula in list validation settings and not in column validation settings.
Similar threads:
Note:
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.
Nov 07 2023 09:07 AM
May 03 2024 10:13 AM - edited May 03 2024 10:14 AM
Hey @ganeshsanap,
I've followed these steps in order to make one of my SharePoint lists columns mandatory if the value "Yes" is entered in another using this formula "=IF([FFE_x002f_ICAT_x0020_Impact]="Yes", NOT(ISBLANK([FFE_x002f_ICAT_x0020_MRP_x0020_Notified])), TRUE)".
However, I keep getting the following error: "The formula cannot refer to another column. Check the formula for spelling mistakes or update the formula to reference only this column."
Any help with this would be greatly appreciated 🙂
May 05 2024 10:34 PM
You are using internal name of list columns in formula. Use correct display name (not internal name) of your SharePoint columns in above formula.
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.
Nov 07 2023 04:54 AM
Solution@Annette1101 Use list validation formula like this:
=IF(OR([Status]="Sold",[Status]="Disposed"),NOT(ISBLANK([OutOfService])),TRUE)
You have to use above formula in list validation settings and not in column validation settings.
Similar threads:
Note:
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.