Data inside the comment field is updated even after saving - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Data inside the comment field is updated even after saving

Last post 10-07-2021 03:57 PM by Hilary Stoupa. 8 replies.
Page 1 of 1 (9 items)
Sort Posts: Previous Next
  • 10-05-2021 12:57 PM

    Data inside the comment field is updated even after saving

    Hi everyone. I have a form that has a field of type Drop-Down, a field of type TextBox that is inside a group to make comments and a checkbox that enables and disables the Drop-Down and the TextBox. The comments field is to be able to capture the Drop-Down data when the SAVE button of the form is pressed and save it within the group (textbox) so that it works as a kind of minute of the item. The detail that I have is when I enter the item and the Drop-Down at the time of changing the value or index, it also changes it in the TextBox of comments, when it should not do it since the data should not update it after saving it. Any idea how to do so that when the Drop-Down changes the selection, it does not change the data of the comment group? Thank you in advance. Regards.
  • 10-06-2021 03:13 PM In reply to

    Re: Data inside the comment field is updated even after saving

    Here's a simple sample form - right click the link, and save the file locally. Right click the file and select Design. Then you can preview it. I don't quite understand your description of what is not working as anticipated in your form. Perhaps you could attach a sample under the options tab in a reply?
    Hilary Stoupa

  • 10-07-2021 09:35 AM In reply to

    Re: Data inside the comment field is updated even after saving

    Hi Hilary. Thank you so much for your answer, I have attached an example for you to review. In this case, I don't use an Infopath SAVE button, I use the native Sharepoint SAVE button to save the item. Also uncheck the option for the "Value" box to be read-only without any good results. I hope you can help me, thank you.
  • 10-07-2021 09:46 AM In reply to

    Re: Data inside the comment field is updated even after saving

    I attach this small gif, where I show you a record already saved in the minute field, but see how the data already saved changes as the dropdwon changes, which is not correct, since the minute data should not be change to be saved and read-only.
  • 10-07-2021 10:11 AM In reply to

    Re: Data inside the comment field is updated even after saving

    So, it sounds like you are saying this is a SharePoint list form? And is the comment field rich text with versioning?
    Hilary Stoupa

  • 10-07-2021 12:35 PM In reply to

    Re: Data inside the comment field is updated even after saving

    Hi Hilary. Yes, the form was created through a list in SP, then it was edited into the current form through Infopath, the Comments field was added in Infopath. The Textbox is not enriched, it is a simple Textbox. The form is attached to you in a response before the GIF.
  • 10-07-2021 01:12 PM In reply to

    Re: Data inside the comment field is updated even after saving

    Thanks - totally missed that. I'll take a look later today.
    Hilary Stoupa

  • 10-07-2021 01:33 PM In reply to

    Re: Data inside the comment field is updated even after saving

    Thank you so much Hilary!!!!, I'll be waiting for your kind comments. Regards.
  • 10-07-2021 03:57 PM In reply to

    Re: Data inside the comment field is updated even after saving

    So - the issue here is that your calculated value with "REV by" at the beginning of it is using data from the Revision field (field2) which is outside of the repeating history group - looks like your comments field does have change tracking on. So that data is not actually being saved in the repeating group - it is part of the main form data. I think I'd change the form to submit via rules, and concatenate the "REV by" text along with the selection to the beginning of the comment value prior to submitting. It won't layout the way you have it, it will be part of the HistoryValue, but that may be the only way to get the outcome I think you desire. Check this copy of the form - right click the linked file, save locally, right click the saved file and select design. Under the data tab in the ribbon, you'll find the submit options - I changed the form to submit via rules and added a rule that should at least capture the data you want along with any comment from the user. I'll warn you that I haven't tested this :)
    Hilary Stoupa

Page 1 of 1 (9 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.