Skip to content
This repository has been archived by the owner on Jan 13, 2018. It is now read-only.

Commit

Permalink
Repeater start field label now defaults to blank
Browse files Browse the repository at this point in the history
  • Loading branch information
kodie committed Oct 30, 2015
1 parent 87e8d52 commit 9ed3959
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions class-gf-field-repeater.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public static function init() {
add_action('gform_enqueue_scripts', array('GF_Field_Repeater', 'gform_enqueue_scripts'), 10, 2);
} else {
add_action('gform_field_standard_settings' , array('GF_Field_Repeater', 'gform_settings'), 10, 2);
add_action('gform_editor_js_set_default_values', array('GF_Field_Repeater', 'gform_set_defaults'));
add_action('gform_editor_js', array('GF_Field_Repeater', 'gform_editor'));
add_filter('gform_tooltips', array('GF_Field_Repeater', 'gform_tooltips'));
}
Expand Down Expand Up @@ -37,6 +38,14 @@ public function get_form_editor_field_settings() {
);
}

public function gform_set_defaults() {
echo "
case \"repeater\" :
field.label = \"\";
break;
";
}

public static function gform_settings($position, $form_id) {
if ($position == 25) {
echo "<li class=\"repeater_settings field_setting\">
Expand Down

0 comments on commit 9ed3959

Please sign in to comment.