question

Harshavardhan-11 avatar image
0 Votes"
Harshavardhan-11 asked JulieWang-MSFT commented

Setting mandatory fill-in choice when selected

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-dev
fill-in-choice.jpg (4.2 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JulieWang-MSFT avatar image
1 Vote"
JulieWang-MSFT answered JulieWang-MSFT commented

@Harshavardhan-11,

-------------------------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.



image.png (18.0 KiB)
image.png (21.8 KiB)
image.png (21.1 KiB)
image.png (23.4 KiB)
image.png (57.9 KiB)
922.gif (184.8 KiB)
922.gif (186.9 KiB)
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Dear @JulieWang-MSFT ,

I have multiple fillin choice fields, so i can't value as FillInButton, please refer any other solution, thank you.

0 Votes 0 ·

@Harshavardhan-11,

In order to get a better forum experience, we changed your answer to a comment.

I have updated my answer, please check it.

0 Votes 0 ·

@Harshavardhan-11,

Is there any progress on this issue?

Please feel free to reply.

0 Votes 0 ·

@Harshavardhan-11,

Do you have any progress on this issue?

Please remember to update this thread if you need further assistance.

0 Votes 0 ·