added field responses
This commit is contained in:
parent
f3ba411afe
commit
c5de9d968f
|
@ -300,12 +300,13 @@ FormSchema.virtual('analytics.fields').get(function () {
|
|||
}
|
||||
|
||||
var totalViews = dropoffViews+continueViews;
|
||||
var responses = continueViews;
|
||||
var continueRate = continueViews/totalViews*100;
|
||||
var dropoffRate = dropoffViews/totalViews*100;
|
||||
|
||||
fieldDropoffs[i] = {
|
||||
dropoffViews: dropoffViews,
|
||||
continueViews: continueViews,
|
||||
responses: continueViews,
|
||||
totalViews: totalViews,
|
||||
continueRate: continueRate,
|
||||
dropoffRate: dropoffRate,
|
||||
|
|
|
@ -74,7 +74,8 @@ angular.module('forms').config(['$translateProvider', function ($translateProvid
|
|||
|
||||
FIELD_TITLE: 'Field Title',
|
||||
FIELD_VIEWS: 'Field Views',
|
||||
FIELD_DROPOFF: 'Field Completion Rate',
|
||||
FIELD_DROPOFF: 'Field Completion',
|
||||
FIELD_RESPONSES: 'Field Responses',
|
||||
DELETE_SELECTED: 'Delete Selected',
|
||||
EXPORT_TO_EXCEL: 'Export to Excel',
|
||||
EXPORT_TO_CSV: 'Export to CSV',
|
||||
|
|
|
@ -207,28 +207,33 @@
|
|||
</div>
|
||||
|
||||
<div class="row col-xs-12 field-title">
|
||||
<div class="col-xs-4">
|
||||
<div class="col-xs-3">
|
||||
<strong>{{ 'FIELD_TITLE' | translate }}</strong>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<div class="col-xs-3">
|
||||
<strong>{{ 'FIELD_VIEWS' | translate }}</strong>
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
<strong>{{ 'FIELD_RESPONSES' | translate }}</strong>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-4">
|
||||
<div class="col-xs-3">
|
||||
<strong>{{ 'FIELD_DROPOFF' | translate }}</strong>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row col-xs-12 field-row" ng-repeat="fieldStats in myform.analytics.fields">
|
||||
|
||||
<div class="col-xs-4">
|
||||
<div class="col-xs-3">
|
||||
{{fieldStats.field.title}}
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<div class="col-xs-3">
|
||||
{{fieldStats.totalViews}}
|
||||
</div>
|
||||
|
||||
<div class="col-xs-4">
|
||||
{{fieldStats.dropoffRate}}%
|
||||
<div class="col-xs-3">
|
||||
{{fieldStats.responses}}
|
||||
</div>
|
||||
<div class="col-xs-3">
|
||||
{{fieldStats.continueRate}}%
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue