locked
How to display calculated column in EditForm.aspx? RRS feed

  • Question

  • Hi,

    I have a list and some calculated columns are present in the list.

    How can I display one of the calculated column in EditForm.aspx with readonly?

    Wednesday, August 22, 2012 11:54 AM

Answers

  • Hi,

    There is no Out of the box feature available but you can do this using Sharepoint designer and Javascript.

    • Marked as answer by hi shafi Thursday, September 27, 2012 6:25 AM
    Thursday, August 23, 2012 5:38 AM
  • Thank you Simouna.

    could you please explain how to do it with javascript without customizing the form?

    • Marked as answer by hi shafi Thursday, September 27, 2012 6:25 AM
    Thursday, August 23, 2012 5:58 AM

All replies

  • Hi,

    Modify EditForm.aspx using shrepoint designer and remove the list viewer webpart there with the custom one in edit mode. Then mark the calculated field as Label.

    I hope this will help you out


    Thanks, Rahul Rashu

    Thursday, August 23, 2012 3:05 AM
  • Dear Rahul, thanks for your reply.

    I am looking to do this without removing list vie webpart( ie without sharepoint designer)

    Thursday, August 23, 2012 4:04 AM
  • Hi,

    There is no Out of the box feature available but you can do this using Sharepoint designer and Javascript.

    • Marked as answer by hi shafi Thursday, September 27, 2012 6:25 AM
    Thursday, August 23, 2012 5:38 AM
  • Thank you Simouna.

    could you please explain how to do it with javascript without customizing the form?

    • Marked as answer by hi shafi Thursday, September 27, 2012 6:25 AM
    Thursday, August 23, 2012 5:58 AM
  • You do not need javascript. We just add xml display like DispForm.aspx like below.

    <xsl:value-of select="@Calculated_Column_Name" />

    Here is the link for detail explanation http:\\menetes.blogspot.co.id/2016/03/add-calculated-field-in-editformaspx-in.html

    Tuesday, March 8, 2016 3:52 PM