cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Nintex Newbie

Timestamped Comments?

Jump to solution

Trying to create a comment box to where users can enter comments throughout process milestones and it will time stamp and hard code each time. Can this be done? Thanks in advance!

Labels: (2)
0 Kudos
Reply
16 Replies
Highlighted
Automation Master
Automation Master

Re: Timestamped Comments?

Jump to solution

How do you want users accessing this to enter their comments?

do you want them to see the previous comments?

do you want all comments added against one process to be concatenated into one multi line text field?

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: Timestamped Comments?

Jump to solution

Hi Cassy

My vision is to have a comment box to where they can enter a comment. Once they hit save, the comment hard codes below the box with a timestamp. The next person (or same person) comes back to that record later and enters a new comment and hits save, and it hard codes above the last hard coded comment. Showing a history of comments with timestamps.

0 Kudos
Reply
Highlighted
Automation Master
Automation Master

Re: Timestamped Comments?

Jump to solution

Are you using Tasks throughout your process, or do you plan on having them all use the base form (as far as collecting comments)?

0 Kudos
Reply
Highlighted
Automation Master
Automation Master

Re: Timestamped Comments?

Jump to solution

OK that makes sense.  do you want them to do it in the form itself or by workflow?

I have created an "Add Comment" workflow on the list which is set to start manually and appears on the item context menu.

It has one variable which is shown on the start page of the workflow and is required.

The workflow does this:

  1. Build String = Current date and time, new line, initiator display name, new line, comments added on start form, new line, item property comments (so new comments are timestamped and added above previous comments).  Stored into variable called vMTextComments
  2. Update Item = set comments field on current item = vMTextComments

Notes.PNG

this will be possible to do in the form also if you wanted it to be done in there.

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: Timestamped Comments?

Jump to solution

Hi Cassy

That is EXACTLY what I want!

The caveat of this is, I will not have workflow for another week and I am presenting this to the end user on the same day I get workflow access. So ultimately, I the workflow will work but right now I need it through the form. But I am saving this for sure!

Reply
Highlighted
Nintex Newbie

Re: Timestamped Comments?

Jump to solution

Hi Mike

I have tasks but not for this piece. I plan on having them use the comments to track tasks for each record. Essentially, a manager needs to go in to see each record and see the history before he/she approves from the form. That was the best way I could think of.

0 Kudos
Reply
Highlighted
Automation Master
Automation Master

Re: Timestamped Comments?

Jump to solution

What version of Sharepoint are you running (2010, 2013, or online?)

0 Kudos
Reply
Highlighted
Automation Master
Automation Master

Re: Timestamped Comments?

Jump to solution

Hi Josh,

if you want to do this on your Nintex form, I think you will need some JavaScript:

function addComment() {

    var newComment = NWF$('.commentsBox p').text();

    if(newComment != "") {

        var oldComment = NWF$('.newCommentsBox textarea').text();

        var d = new Date();

        var combComment = oldComment + " " + d.toUTCString() + ": " + newComment;

        NWF$('.newCommentsBox textarea').text(combComment);

    }

}

This code requires:

  • One SharePoint MultiLine column for comment input (css class = commentsBox)
  • One MultiLine Textbox one your form to store all the comments (css class = newCommentsBox)
  • A button which you need to configure to use Javascript as  Button action (clientclick = addComment())

Formatting may need to be improved but should give you something to start with.

Regards

Philipp

View solution in original post

Reply
Highlighted
Nintex Newbie

Re: Timestamped Comments?

Jump to solution

This worked great!! Thanks for including the java script. Not my forte! Quick question though...what is the best way to make the history comments box so it is not editable? I thought maybe a "Not Null" condition but I can't figure it out. I know it's probably something super easy but you guys have been so helpful, though I'd give this a shot.Cassy FreemanEmily Billing

0 Kudos
Reply