Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • pavel ringelhan 7 posts 78 karma points
    Aug 03, 2017 @ 08:15
    pavel ringelhan
    0

    How can I retrieve and view a record?

    Hi how can i work with the records saved through the formulate. Please give an example. I need to display them on the page

  • Nicholas Westby 2054 posts 7104 karma points c-trib
    Aug 03, 2017 @ 15:05
    Nicholas Westby
    0

    Are you talking about displaying stored Formulate form submissions on the frontend of your website (rather than in the back office)? That is not explicitly supported, but you could get something working.

    Take a look at this GetSubmissions method: https://github.com/rhythmagency/formulate/blob/4f0c198387dc7bf97e6b4ce2fff2a526b2af3d3d/src/formulate.app/Controllers/StoredDataController.cs#L90

    That gets the values from the database and returns an anonymous object, which then gets serialized to JSON and used by JavaScript to display the submissions.

    You could also take a look at GenerateCsvOfFormSubmissions: https://github.com/rhythmagency/formulate/blob/4f0c198387dc7bf97e6b4ce2fff2a526b2af3d3d/src/formulate.app/Controllers/StoredDataDownloadController.cs#L164

    That stores the submissions for a form in a CSV file and returns a byte array of the contents of that CSV file.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies