SharePoint 2016 Form

Maurice Gibson 1 Reputation point
2021-04-09T15:28:00.82+00:00

I have a custom list with a Yes/No check box. If the box is checked No I would like a pop up message that reads Not Authorized. The field has no formula feature. How can I do this?

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

2 answers

Sort by: Most helpful
  1. JoyZ 18,111 Reputation points
    2021-04-12T07:27:14.157+00:00

    Hi @Maurice Gibson ,

    We could add a content editor web part in New Items form, then add the code in the txt file.

    Every time we add a new item, if you do not check the box, the warning box will show:

    86670-image.png

    Note: This will only works on new items page, not work on all items and edit items page.


    If an Answer is helpful, please click "Accept Answer" and upvote it.

    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. sadomovalex 3,636 Reputation points
    2021-04-21T15:06:30.923+00:00

    as it was suggested you can do that with custom javascript injected to form. E.g. here you may find example of such javascript: How to display text when a SharePoint custom new form field which is a checkbox is selected.

    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.