question

Sans-8037 avatar image
0 Votes"
Sans-8037 asked Sans-8037 commented

making filed required only when showing on the sharepoint list form

I have a customized SharePoint list using JavaScript to show/hide based on dropdown selection, fields that are part of show/hide functionality are not required, i want to make them required only when i show them on the form. problem is when i make them required fields and hide them, form wouldn't go through(not creating the item), it just stand by.
I want make these fields required only when they show on the form. is this possible?

Hope the question is clear...



Thanks in advance

office-sharepoint-online
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

ElsieLu-MSFT avatar image
0 Votes"
ElsieLu-MSFT answered Sans-8037 commented

Hi @Sans-8037 ,

You could edit the column and set it to Require that this column contains information:

121769-8.jpg 121892-9.jpg


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


8.jpg (40.2 KiB)
9.jpg (58.5 KiB)
· 2
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.

Hi @Sans-8037 , is there any update? We are willing to hear from you. Feel free to reply if you have any doubts.

0 Votes 0 ·

Thank you , So the question is, i am using javascript to show/hide few columns on the list form. when i make them required form doesn't move to create a list item(when hidden) because the filed is still required in the background . so i am trying to make these fields required only when showing on the list form.

0 Votes 0 ·