Keep up to date with Gravity PDF

  • This field is for validation purposes and should be left unchanged.
This is the legacy Gravity PDF v4 documentation which is NOT supported. Go to the latest documentation.
Jump To Section

Description #description

This function will output (or return) the Survey Add-on Likert table.

Version #version

This method was introduced in Gravity PDF 4.0.

Parameters #parameters

$entry | array
The raw Gravity PDF Entry
$field_id | integer
The field ID of the likert field you want to output
$return | boolean | optional
Set to true to have the likert table HTML returned. By default this is false and will automatically be echoed.

Return #return

string | void
Returns the HTML string when $return is true

Usage #usage

The following snippet shows you how to output the likert table from your Gravity PDF template:

/* The raw $entry array is available to all Gravity PDF templates automatically */
GPDFAPI::likert_table( $entry, 20 );

Source Code #source-code

This method is located in api.php.

Signup for the latest Gravity PDF news, tips and updates

  • This field is for validation purposes and should be left unchanged.
Gravity PDF 40K Active Installs Celebration! Take 20% off any products with coupon 40KMILESTONE (this week only)Visit Store
+ +
Scroll To Top

Choose your currency:

Converted prices are for reference only - all orders are charged in $ Australian Dollars ($) AUD.
  • AUDAustralian Dollars ($)
  • USDUS Dollars ($)
  • CADCanadian Dollars ($)
  • EUREuros (€)
  • GBPPound Sterling (£)
  • NZDNew Zealand Dollar ($)
  • JPYJapanese Yen (¥)