Stump the Panel » End Users and Information Workers

Formatting Date field when rendering as lable in EditForm

(3 posts)
  • Started 3 days ago by shalinparmar
  • Latest reply from shalinparmar
  1. shalinparmar
    Member

    Hi,

    I want to prevent user from editing one of the columns in a list. Hence I have created a custom edit form and rendering the field as label. The problem is that the field is of type date and in Label it renders in the format:
    2009-03-19T07:00:00Z

    How can I change this format in the label? Please help.

    Posted 3 days ago #
  2. Instead of changing it to a label, here's what I'd try:
    Click on the regular date list form field to select it.
    On the left side of the screen, look at the "Tag properties" section.
    In the Misc section, find "ControlMode"
    Change ControlMode from "edit" to "display"

    Now, your field will not be editible, and it won't be in a weird format.

    Laura Rogers

    Posted 3 days ago #
  3. shalinparmar
    Member

    When I do that I go to Webpart maitainance page as it is rendered as an error.
    Also, I have another similar scenario where I am having DataView wher I am allowing Edit functionality. So, when user click on Edit for a row in dataview I want to make "Date" field as read-only so I went and try to make it Display there and it throws error there too......if I make it label it works or leave the control in "Edit" mode it works which I don't want.

    Thanks.....

    Posted 2 days ago #

RSS feed for this topic

Reply

You must log in to post.