Show created date and modified date in the editform.aspx page in a list with the fields disabled

Created 2 fields "Created Date" and "Modified Date". Show them only on the EditForm.aspx and DispForm.aspx.

Using designer workflow, create workflow for the list and "Update Item" - Copy Created value to Created Date and Modified value to Modified Date.

Add the following JQuery in the EditPage.aspx using Content Editor Webpart or using designer add the following script under <asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">.



<script src="http://code.jquery.com/jquery-1.9.0.js"></script>
<script>
$(document).ready(function () {
     $('input[title="Created Date"]').attr("disabled","disabled");
    $('input[title="Modified Date"]').attr("disabled","disabled");
});
</script>

1 comment:

  1. The Shoshone Casino Resort | JMT Hub
    The Shoshone Casino Resort. Jambore (Jambore, CA) – May 25, 익산 출장마사지 2019 군산 출장안마용인 출장안마 June 4, 2019 – July 3, 2019 – 남원 출장샵 August 1, 2021 – September 의왕 출장안마 1, 2021 –

    ReplyDelete