Appended Multi-Line Text Field Questions

Forums Dynamic Forms for SharePoint Appended Multi-Line Text Field Questions


This topic contains 4 replies, has 3 voices, and was last updated by  Notrega 4 days, 18 hours ago.

  • Author
  • #20423


    I have a multi-line plain text field that appends {FIELD1}, and I need the last entry as plain text in a html formatted letter. When I use {FIELD1} in the html it gives me all of the appended history, but I need just the last entry. So I used the code below from another thread to trigger a rule that sets another non-appending text field {FIELD2} and it works… until I touch the record again then the blank/empty append on {FIELD1} results in the rule emptying {FIELD2}.

    Is there an easier way to do what I want to do or is there something that I am missing?

    // Plain text fields
    $("#dffs_FIELD1 textarea").on("change",function(){
    // Enhanced Rich text fields
    var initialRteVal = getFieldValue("FIELD1").replace(/<[^>]*>/g,"");
        var currVal = getFieldValue("FIELD1").replace(/<[^>]*>/g,"");
        if(currVal !== initialRteVal){

    By the way – I just got access to DFFS last week and it is AWESOME!!! Thanks for a great tool!!!!

  • #20425


    Never mind – it is working now… I think LOL

    If there is a better way I still would appreciate it.

  • #20433

    Keith Hudson

    NOTE that the “Append to existing text” choice is horribly misnamed. It would be better named “show prior versions”. I never use it. Ever. Instead, I use a multi-lines of text plain text field.

    The easiest way to use it is to manually add text to the plain text field. Usually, however, I want to include a date and author stamp for each added piece of text, so just above that field on my form I insert a button using an html section, that runs a custom javascript function to create a timestamp and author stamp and pre-pend those to the existing text in the field, and position the cursor so I can just type my additional text after clicking the button.

    IF you need more details, post here and I’ll try to get time to capture some code and screenshots and add them to this discussion.

  • #22776


    I am interested in the JS code you mentioned above as I have several multi-line text fields in which multiple users enter text. Their self-submitted initials and date annotations are all over the board. Your JS would be helpful.


  • #22832


    I would be interested in Keith’s approach as well.

You must be logged in to reply to this topic.