Skip to main content

Search

Populating a field - Populate a field on a form with the logged in users name

Comments

3 comments

  • ArdeviaForum

    Original Post by Andrii Berezovskyi (Imported from Ardevia Forum)

    Hello Sean

     

    Try next approach:
    1)Customize NewForm and  set Enabled expression =false for Requested By filed
    2)Set [[@User.Title]] as Initial Expression for Requested By filed
    see screenshot

    0
  • ArdeviaForum

    Original Post by Sean Docherty (Imported from Ardevia Forum)

    Thank you for your reply on this question.
    The solution that you provided works perfectly.
    The only other question that I have is, is there a way to prevent the end user from changing the entry that is populated I the field. In effect locking the field after the information is populated.

    0
  • ArdeviaForum

    Original Post by Yuriy Stetsyuk (Imported from Ardevia Forum)

    Hi Sean,

     

    To disable a field on Edit Item form, add an Enabled expression on the Behavior ribbon tab. Add the following Assignment expression:

    Quote:

     

    [[RequestedBy]]!=''
    

     

    where "RequestedBy" is internal name of your target field.

     

    Note: The user still can edit the field value in Quick Edit view.

    0

Please sign in to leave a comment.