"use strict"; /** * JSLink: Form Customization */ var GDForm = (function () { /** * Methods */ // Method to set the default value function setDefaultValue(ctx, field) { // Default the value ctx.CurrentFieldValue = "Gunjan"; // Render the field return $REST.Helper.JSLink.renderField(ctx, field); } /** * Initialization */ function init() { // Register the JSLink template $REST.Helper.JSLink.register({ Templates: { Fields: { Title: { NewForm: setDefaultValue } } } }); } /** * Public Interface */ return { init: init }; })(); // Write the javascript to initialize the CSR override. This will ensure it's called when MDS is enabled document.write("");