making filed required only when showing on the sharepoint list form

Sans 11 Reputation points
2021-08-09T18:27:27.517+00:00

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

Microsoft 365 and Office | SharePoint | For business | Windows
{count} vote

1 answer

Sort by: Most helpful
  1. Elsie Lu_MSFT 9,801 Reputation points
    2021-08-10T06:46:34.497+00:00

    Hi @Sans ,

    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.


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.