Recently one of the client has asked for validation to the date time field in a list. Published date time value should be greater than today and expiry date should be less than published date. Client wants the error message to be shown similar to the way how share point shows the error messages. Client side rendering(CSR) came to my rescue. Using CSR the developers have more control on what to show and how to show. I dont want to go into what is CSR and also those things. If you want to find out CSR read this article CSR basics. First we will be creating a field and add some js links to it. // Create a field and add the required js link. <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <Field Type="Text" Name="DateVal" Description="Enter Publishing Date" DisplayName="Expiry Date" StaticName="DateVal" Group=...
Blogging about new things I learned in SharePoint, powershell and Office 365 applications.