GravityKit\GravityMigrate\Schema\GfNetPromoterScore
Builds the eleven answers a Net Promoter Score question offers.
NPS asks one thing -- how likely are you to recommend us, nought to ten -- and stores a single integer. Gravity Forms has no NPS field, and the nearest thing that asks the same question is the Survey add-on's radio flavour: one choice per point.
The survey add-on's rank field is not a substitute. It is a drag-to-order list storing a comma-separated ordering, and it renders nothing at all without choices -- get_ordered_choices() returns an empty array the moment $this->choices is empty (gravityformssurvey/includes/class-gf-field-rank.php:145-148).
Since: %ver%
Source: src/Schema/GfNetPromoterScore.php:24
Details
- Kind:
class - Namespace:
GravityKit\GravityMigrate\Schema
Methods
| Method | Description |
|---|---|
build() | The field properties a nought-to-ten scale needs. |
choices() | One choice per point on the scale, nought through ten. |
Method Reference
build()
public static function build(): array
The field properties a nought-to-ten scale needs.
Returns
array
Since: %ver%
Source: src/Schema/GfNetPromoterScore.php:51
choices()
public static function choices(): array
One choice per point on the scale, nought through ten.
Returns
array
Since: %ver%
Source: src/Schema/GfNetPromoterScore.php:67