21 var
$icon =
'dashicons-admin-links';
24 $this->label = esc_html__(
'Source URL',
'gk-gravityview' );
25 $this->
description = esc_html__(
'The URL of the page where the form was submitted.',
'gk-gravityview' );
26 parent::__construct();
32 unset( $field_options[
'show_as_link'] );
34 if(
'edit' === $context ) {
35 return $field_options;
38 $add_options = array();
39 $add_options[
'link_to_source'] = array(
41 'label' => __(
'Link to URL:',
'gk-gravityview' ),
42 'desc' => __(
'Display as a link to the Source URL',
'gk-gravityview'),
44 'merge_tags' =>
false,
46 $add_options[
'source_link_text'] = array(
48 'label' => __(
'Link Text:',
'gk-gravityview' ),
49 'desc' => __(
'Customize the link text. If empty, the link text will be the URL.',
'gk-gravityview'),
52 'requires' =>
'link_to_source',
55 return $add_options + $field_options;
Modify field settings by extending this class.
Add custom options for source_url fields.
new GravityView_Field_Source_URL
scale description p description
if(empty( $created_by)) $form_id
if(false !==strpos( $value, '00:00')) $field_id
string $field_id ID of the field being displayed
field_options( $field_options, $template_id, $field_id, $context, $input_type, $form_id)