Skip to main content

get_lead_field_display()

public static function get_lead_field_display( $field, $value, $entry=[], $use_text=false, $format='html', $media='screen' )

Returns the value to be displayed on the entry detail page and for the {all_fields} merge tag.

Post category values are prepared inside GF_Field::get_value_entry_detail() for relevant field subclasses.

Since:

  • unknown
  • 2.9.29 (Changed the third parameter $currency (string) to $entry (array).)
  • 3.0.0 (Deprecated.)

Deprecated: 3.0.0 (Use $field->get_value_entry_detail() for entry detail output OR $field->get_value_all_fields_merge_tag() for {all_fields} output.)

Source: common.php:4279

Parameters

NameTypeDefaultDescription
$fieldGF_FieldThe field.
$valuestring | arrayThe field value.
$entryarray[]The entry.
$use_textbool | falsefalseWhen processing choice based fields should the choice text be returned instead of the value.
$formatstring'html'The format requested for the location the merge is being used. Possible values: html, text or url.
$mediastring'screen'The location where the value will be displayed. Possible values: screen or email.

Returns

  • string | false