If you have updated your SharePoint environment (true for Office 365 as well) with recent patches (Service Pack or Cumulative Update) and are suddenly facing problems with any functionality that has been working fine for so long. Do not worry and check this, it might help.
What happened after the SharePoint update from Microsoft?Microsoft has made some updates/changes to the default Out Of The Box required site columns (something like Name field - internal name FileLeafRef).
Now required fields show up as a different name in your HTML DOM. The Title attribute for <input> will be changed and "Required Field" is appended to the old display name.
Old display name for Name field - Name
New display name for Name field - Name Required Field
Why will my code break?
If you are referencing to these column names in your JavaScript / JQuery code in SharePoint, then expect it to break and your users complaining about errors and broken functionality.
A good example is where you extract the document name into a JavaScript variable
var spDocName = $("input[title='Name']");
This line of code would have worked fine earlier as there is a field with title="Name" on your page.
But will fail after the patch now since title="Name Required Field".
How to troubleshoot such issues?The best way to troubleshoot this kind of issue is by using the Browser F12 Developer Tools.
Using developer tools, check the HTML code for the required column which is used in your code to verify if the title is changed.

- Managed Metadata error - The data returned from the tagging UI was not formatted correctly
- How to generate client id and secret to register SharePoint App with OAuth
- Create SharePoint Site Collection with new Content database in existing web application
- Fix Error 2711 SQL RBS client - The installer has encountered an unexpected error. The specified Feature name ('Docs') not found in Feature table
- How to exclude results from SharePoint Search
- 'Edit Document' Requires a Windows Sharepoint Services-compatible application and Microsoft Internet Explorer 6.0 or higher
- [Solved] SharePoint Access Denied error editing Document Name
- Recommended size and resolution for SharePoint Online Site logo
- SharePoint Server 2016 IT Preview - new improved Features and Enhancements
- Restore deleted Office 365 SharePoint group site
- SharePoint An unexpected error has occurred - Correlation ID and PowerShell Merge-SPlogfile
- [Solved] SharePoint Search Internal server error exception
- SharePoint CAML query error - The XML source is not correct
- How to hide quick launch in SharePoint classic site
- Not receiving email notification alert in SharePoint Online workflow - Power Automate, FLOW
- Change SharePoint search results FullTextSqlQuery RowLimit 10000
- Fix Power BI error Access to the resource is forbidden when connecting SharePoint Online List as data source
- [Fix] Restricted View permission level missing in SharePoint Online site library
- How to upload file programmatically to SharePoint Document Library using Server Object Model C# .Net
- How to create classic site in SharePoint Online
- That did'nt work, Issue type User not in directory - SharePoint external access error
- Merge-SPlogfile PowerShell - SharePoint Correlation ID error
- Fix Power BI 404 not found error when connecting SharePoint Online List as Data Source
- SharePoint Server 2016 IT Preview Deprecated Removed features
- SharePoint error - An exception occurred when trying to issue security token: This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms..
- XmlRpcException ConnectException connection refused error - Java
- Free and easy audio video screen recording using Microsoft PowerPoint - Microsoft
- Android appcompat_v7 Error retrieving parent for item: No resource found that matches the given name - Android
- Todays Apple Spring Loaded Event Live Updates - Apple
- JavaScript : Get url protocol HTTP, HTTPS, FILE or FTP - JavaScript
- [Fix] Java Exception with Lambda - Cannot invoke because object is null - Java
- How to Change Text Size for Android ActionBar - Android
- Android Toolbar example with appcompat_v7 21 - Android