web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

To add comments in fields with comma seprator

(1) ShareShare
ReportReport
Posted on by 1,836
hi ,
I am having custom field on my form , i want to add comments after previous comments with comma seprator , how can i get this done can anyone help me on this .
 
 
thanks ,Dinesh
I have the same question (0)
  • Layan Jwei Profile Picture
    8,097 Super User 2025 Season 2 on at
    Hi Dineshkarlekar,
     
    How are you going to add this comment?
     
    If let's say you are filling another field, where you want this value to go automatically to the original comment field. Then maybe u can do sth like this
     
    If(!originalField)
    {
       orignalField = newField
    }
    else
    {
        originalField = originalField + ', ' + newField
    }
     
    Please give us more details on how and when this comment field is going to be filled.

     
    Thanks,
    Layan Jweihan
  • Dineshkarlekar Profile Picture
    1,836 on at
    hi ,
    thanks for reply ,
    comment field is memo field on custom table, which is displayed on custom form  
    when ever the user add the entries in form , he will fill comments . so every time someone will be adding the comments so i want it to after adding any record in form , so i want previous comments , and new comments with comma seperator . 
    can you plz guide me which table method i should use .
     
    thanks ,
    Regards,
    Dinesh 
  • Layan Jwei Profile Picture
    8,097 Super User 2025 Season 2 on at
    Hi Dinesh,
     
    Just so that I understand. So the new user will open the form and will see the comment of the previous user? And you don't want the user to delete the previous comment? But just add to it?
    Are we talking about 1 field or 2 fields?
     
    Also can you please update us and verify answers if the link/answers we provided here helped you in creating the dialog and uploading the file?
    https://community.dynamics.com/forums/thread/details/?threadid=30cbd07b-2873-ee11-9ae7-00224827e8f9
     
    Thanks,
    Layan Jweihan
  • Dineshkarlekar Profile Picture
    1,836 on at
     is it  possible to do in 1 field because i have only on field on form .
     
    Also can you please update us and verify answers if the link/answers we provided here helped you in creating the dialog and uploading the file?
    https://community.dynamics.com/forums/thread/details/?threadid=30cbd07b-2873-ee11-9ae7-00224827e8f9
     
     i have tried verifying this link , but is is not continuesly loding since i click on verify .i will update u soon on it 
  • Verified answer
    Martin Dráb Profile Picture
    237,817 Most Valuable Professional on at
    These are the options I would consider:
    • Have a separate table for comments. When a user adds a new comment, you'll simply add a new record. This allows you to track other information, such as who added the comment and when. (Of course, I can't know whether this would be useful for your business scenarios or not). Another benefit is that you won't bloat up size of the original record and you may even get rid of the memo field and support filtering.
      When/if needed, you can concatenate the comments and show them to use a user together.
    • Simply let users to edit the comment field.
    • Give users a dialog (e.g. a drop dialog) to add a comment (instead of editing the field directly) and add attach the new comment to existing comments in code.
    Update: I've just found another thread of yours, To save the comments in field with curuser name and date and time, which clarifies that your current design doesn't meet your requirements and you need to follow the first of my suggestions.
  • Dineshkarlekar Profile Picture
    1,836 on at
    hi ,
    Martin thanks for reply,
    i will just check for requirements and let you know , then i will process as you suggested 
     
    thanks ,
    regards ,
    dinesh 
  • Dineshkarlekar Profile Picture
    1,836 on at
    hi ,
    i have created new table , added comments , user name and date and time field add created new grid on form which is having relation to header table , now plz can you guide me how can i get comments uneditable after saving and pass current user name date and time when ever someone save comment . 
     
    thanks , regards, 
    Dinesh  
  • Martin Dráb Profile Picture
    237,817 Most Valuable Professional on at
    Let's keep the question of user name and time in the thread you've created for it (To save the comments in field with curuser name and date and time). Note that I already gave you the answer (using CreatedBy and CreatedDateTime properties) there last week. If you have questions about it, ask them there.
     
    The way how you can prevent editing of saved records is setting AllowEdit property of the form data source to No.
  • Dineshkarlekar Profile Picture
    1,836 on at
    hi , 
    martin , 
    i set the allow edit property to no but this make grid uneditable when i add new line , when i create new line grid should be editable ,it only should be uneditable for previous comments .
  • Martin Dráb Profile Picture
    237,817 Most Valuable Professional on at
    AllowEdit controls whether existing records can be changed. Whether you can create new records is controlled by AllowCreate.
     
    Your problem must be caused by something else.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 512 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 291 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans