Last active
May 23, 2017 09:20
-
-
Save hammadbinarif/b178db5f36d6fe11ec9c4a881e6e1ed1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_spBodyOnLoadFunctionNames.push("myScriptStartup"); | |
function myScriptStartup () { | |
var editMode = EditState.Editing; | |
if (editMode) { | |
// PDP is in edit mode | |
// Do things differently here | |
console.log('PDP is in edit mode. so our input fields will be editable'); | |
} | |
else { | |
// make custom input fields read-only | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment