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