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:
unknown2.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
| Name | Type | Default | Description |
|---|---|---|---|
$field | GF_Field | The field. | |
$value | string | array | The field value. | |
$entry | array | [] | The entry. |
$use_text | bool | false | false | When processing choice based fields should the choice text be returned instead of the value. |
$format | string | 'html' | The format requested for the location the merge is being used. Possible values: html, text or url. |
$media | string | 'screen' | The location where the value will be displayed. Possible values: screen or email. |
Returns
string|false