Making a field mandatory based on another field in SP Modern list

Harry N Nomikos 1,336 Reputation points
2022-03-18T02:31:38.953+00:00

Hi Team

Is there way we can make a field mandatory based on a selection from another field on modern SP list?

Also, can this be achieved via conditional formatting under edit columns or would this need to be achieved in Power Apps?

Cheers

Microsoft 365 and Office SharePoint For business Windows
0 comments No comments
{count} votes

Accepted answer
  1. Emily Du-MSFT 51,836 Reputation points Microsoft External Staff
    2022-03-18T08:03:47.027+00:00

    @Harry N Nomikos

    You could set list validation to make a field mandatory based on a selection from another field in the modern list. For example, when test2 field =1, test1 field is mandatory.

    1.Go to List settings -> Validation settings -> Use following formula.
    =IF([test2] = "1", IF(ISBLANK([test1]), false, true), true)

    184473-1.png

    2.Result.

    184474-2.png


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    2 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Harry N Nomikos 1,336 Reputation points
    2022-04-12T00:39:13.803+00:00

    Hi @Emily Du-MSFT

    Apologies for the delay, your help has been instrumental and I really appreciate all your effort with helping me find workarounds and solutions :)

    Regards,
    Harry

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.