HTML Failure to Submit

Home Forum General HTML Failure to Submit

This topic contains 1 reply, has 2 voices, and was last updated by  Dennis @ PerfectForms 4 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6949

    Andrew
    Participant

    I have a Travel Form created that works fine if it is not loading in HTML format but if it is it gives the following error regardless of browser or even device.

    Submit Data

    System.InvalidCastException: Unable to cast object of type ‘Newtonsoft.Json.Linq.JValue’ to type ‘Newtonsoft.Json.Linq.JArray’. at PerfectForms.HTMLPlayer.Form.Controls.TableControl.SetDataJSON(JObject jobject) at PerfectForms.HTMLPlayer.Form.Controls.BaseContainerControl.SetDataJSON(String json, String lastShownPageId, String workflow, Dictionary`2 mappingDoc) at PerfectForms.HTMLPlayer.Form.FormX.SetDataJSON(String json, String lastShownPageId, String workflow, Dictionary`2 mappingDoc) at PerfectForms.HTMLPlayer.Player.FormSession..ctor(PlayInfo playInfo, IFormSessionServer server, String lastShownPageId, XPathDocument mappingDocXpath, Boolean isSubmission) at PresentationServer.Controllers.FormController.Submit(String jsonVal, String lastShownPageId, String submitAsChild, String linkId, String notification, String instanceGUID)

     

    Any direction on where to start trouble shooting or to correct this would be helpful.

    Thanks,

    Andrew

    #6954

    Flash is much more forgiving or errors in behaviors and logic than HTML. Start by auditing all of the behaviors associated with the submit action. Make sure to check all of the associated behaviors as well. In other words, if a field is set, is there a behavior on when that field changes data? Is there a “form is closed” behavior? Look for incomplete behavior objects, flawed logic, etc…

     

    If that bears no fruit also look at your tables. The error does reference table controls as well.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.