Setting mandatory fill-in choice when selected

Harshavardhan 21 Reputation points
2021-09-20T11:50:45.867+00:00

Dear Team,

I have a choice field with enabling Allow fill-in choice option. This choice field is optional but when they select fill-in choice option, then it should be mandatory to fill something.
is there any work around, please guide me.

![133577-fill-in-choice.jpg]1

Thanks in advance.

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,668 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JoyZ 18,041 Reputation points
    2021-09-21T02:58:56.037+00:00

    @Harshavardhan ,

    -------------------------Update----------------------------

    If you have multiple choice columns have the same value, we could use id and title to meet your requirement:
    134200-specify-value-2.txt

    134258-image.png

    134247-image.png

    Result for your reference:

    134271-922.gif
    -------------------------------------------------------------------------------------------------------------------------

    Add a content edit web part both in NewForm.aspx and EditForm.aspx and insert following code in them:

    133824-specify-value.txt

    133767-image.png

    Press F12 to find the radio value used in code:

    133831-image.png

    Result for your reference:

    133766-image.png


    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.

    1 person found this answer helpful.