Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • julius 107 posts 289 karma points
    Sep 29, 2011 @ 10:16
    julius
    0

    Read only umbraco field

    Hello :)

     

    Would it be possible to create a text field for a certain content type in Umbraco that can be filled out once and once saved, can not be changed anymore?

     

    Regards, Julius

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Sep 29, 2011 @ 10:40
    Stefan Kip
    0

    Does it have to be filled by the client via the umbraco front-end?
    If not, you could use the label datatype and set it's value via code.
    Else you could use the Textstring and add a Document.AfterSave event handler, which checks if the value has been set and change it's datatype to a label so it can't be altered via umbraco UI anymore.

  • julius 107 posts 289 karma points
    Sep 30, 2011 @ 15:03
    julius
    0

    Ok, bedankt kippensoep ;) I am going to have a look at this solution.

Please Sign in or register to post replies

Write your reply to:

Draft