In a Sitecore Form for example if I have list of questions with list of radio button answers. Does Sitecore have an API to return the statistics of how many users choose this answer?
I'm using Sitecore 9.3
Sitecore Stack Exchange is a question and answer site for developers and end users of the Sitecore CMS and multichannel marketing software. It only takes a minute to sign up.Sign up to join this community
Sitecore doesn't have an API to return statistics of how many users choose this answers,
but it has a function to get all results from a form :
IEnumerable<FormEntry> formEntries = this._formDataProvider.GetEntries(formId, startDate, endDate).AsEnumerable<FormEntry>();
You need to build your own controller and to inject formDataProvider on it.
Please have a look on class : Sitecore.ExperienceForms.Client.Data.CsvExportProvider