disappearing data - InfoPath Dev
in

InfoPath Dev

disappearing data

Last post 12-23-2013 10:34 AM by claydevin. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 02-17-2012 08:19 AM

    disappearing data

    Hi, I am new to InfoPath, and I am having an issue with a web-based form. I have a Rich Text Box that is in a repeating section that is
    bound to an XHTML field. This is not in the main/default view, and the user can submit the form from the main/default view and from the
    sub-view with this control in it. When the user adds more than one of these Rich Text Boxes to the form, the data that has been entered into
    the field isn't always saved. I have, however, never seen the first time not be saved. The form is hosted in SharePoint 2010, and the issue doesn't

    happen in InfoPath's debug.

    Scenario 1:
    user enters text into the Rich Text Box. Then clicks the submit button. The text in the first Rich Text Box keeps the user entered text as
    expected. The user then adds another field, enters text, and clicks submit. The form then saves, however, the newly entered text in the
    Rich Text Box sometimes changes to "", and sometimes the text in the Rich Text Box stays as the newly entered text as expected

    Scenario 2:
    After clicking submit and the data stays as expected, the user then wants to change the value that is in the Rich Text Box. The user enters
    new data in the Rich Text Box and presses submit. The form then saves, however, sometimes the text in the Rich Text Box changes back to
    the data that was there previous to the user's changes, and sometimes the text stays as the newly entered text as expected.

    This seems to be a random error. It sometimes happens on the second entered Rich Text Box and sometimes doesn't happen until the
    4th or 5th. This error doesn't happen when debugging the form in infopath. The code I am using to debug this issue is on the submit
    button clicked event.
    XPathNavigator domNav = MainDataSource.CreateNavigator();
    XPathNodeIterator rows = domNav.Select("/my:myTipLead/fxintakerequest:IntakeRequest/fusionx:AnalystNotes/fusionx:AnalystNote/fusionx:NoteText", NamespaceManager);
    while (rows.MoveNext())
    {
    EventLog.WriteEntry(ERROR_SOURCE, "node value = " + rows.Current.Value);
    }

    The event log show all of the times it acted as expected. When it fails to save the text entered, the event log has all of the previously entered Rich Text Box data and the newly entered Rich Text Box entry says "not value = ". I'm assuming that the text is never getting into the field. If there is any other information that would help, I will be happy to provide it. I’m completely lost on this problem. Any help would be much appreciated. Thank you!!

  • 02-17-2012 08:23 AM In reply to

    I have now changed the Postback setting on the Rich Text Box to Always. With this new setting, here is what happens: The user enters text into the Rich Text Box and clicks submit. The Rich Text Boxes flashes off and then back onto the screen (I'm guessing because it's sending data to the server) but the submit doesn't happen. The user must press the submit button again for the submit to actually happen. I'm guessing that the data is only being sent to the server when the Rich Text Box loses focus. The interesting thing that happened was sometimes when the user would enter text into the Rich Text Box and press submit, the Rich Text Box would not flash and the submit would happen on the first click. The data would not be saved when this happens, and the newly created Rich Text Box would be empty no matter what the user entered. If anyone can help with this, I would really appreciate it. Thank you

  • 12-23-2013 10:34 AM In reply to

    we are experiencing the same issue. It seems based around Rich/Text fields. I thought it might have something to do with the fields being outside of the Section/Group in the fields listing, but really be inside that section in the form. Tried publishing with each of the different field level postback settings. UPDATE: This seemed to work for me, Chrome with IE Tab. The short term answer http://sharepoint.stackexchange.com/questions/35629/data-in-rich-text-box-control-does-not-submit-browser-compatibility-issue
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.