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

Commit

Permalink
1.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
kodie committed Jan 25, 2016
1 parent 7461e61 commit f6c4888
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 24 deletions.
17 changes: 17 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
v1.0.9 (1/25/2016)
- Fixed bug where in some cases a PHP error would occur when attempting to automatically disable ajax on a form.
- Fixed bug where sometimes a javascript error would occur on date fields with a calendar icon.
- Fixed bug where removing a specific repeatId would cause some weird things to happen.
- Fixed bug where repeaters in a multipage form that are not on the first page would appear to have failed validation even if the form hasn't been submitted.
- Fixed bug where repeaters in a muttipage form that are not on the first page would forget their saved data and ignore their start setting.
- Fixed hideButtons setting.
- Added [gfRepeater-buttons], [gfRepeater-add], and [gfRepeater-remove] shortcodes.
- Added custom CSS option to repeater start and end fields.
- Added gf_repeater_hide_add and gf_repeater_hide_remove CSS classes.
- Added gfRepeater_select javascript function.
- Added 'gform_repeater_init_done' trigger to window and individual forms.
- Changed 'beforeRepeat', 'afterRepeat', 'beforeUnRepeat', and 'afterUnRepeat' triggers to 'gform_repeater_before_repeat', 'gform_repeater_after_repeat', 'gform_repeater_before_unrepeat', and 'gform_repeater_after_unrepeat'.
- Repeated fields now respect conditional logic from outside the repeater.
- Applying conditional logic on a repeated section field now also applys that logic on repeated fields under that section.
- When exporting entries, repeater child data is now exported in a comma-separated list.

v1.0.8 (12/30/2015)
- Fixed bug where sometimes for some reason an input name would be sent as an array and cause a PHP error to display.
- Fixed bug where sometimes validation message would be displayed multiple times for same field.
Expand Down
54 changes: 34 additions & 20 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ A Gravity Forms add-on that allows specified groups of fields to be repeated by
### Shortcodes
You can place shortcodes inside of input labels, input descriptions, and HTML blocks!
* [gfRepeater-count] - Will output the current repeat number.
* [gfRepeater-buttons] - Will output both the '+' and '-' buttons.
* [gfRepeater-add] - Will output the '+' button.
* [gfRepeater-remove] - Will output the '-' button.

### CSS Classes
You can use these CSS classes in the in the "Custom CSS Class" setting to do different things.
* gf_repeater_hide_add - Will hide the '+' button if placed in the repeater end css setting.
* gf_repeater_hide_remove - Will hide the '-' button if placed in the repeater end css setting.

### Javascript
##### Functions
Expand Down Expand Up @@ -67,14 +75,19 @@ gfRepeater_unrepeatRepeaterTimes(formId, repeaterId, timesX);
gfRepeater_setRepeater(formId, repeaterId, timesX);
Repeats or unrepeats the repeater to get it to whatever timesX is.
```
```
gfRepeater_select(formId, repeaterId, repeatId, childId, inputId);
Selects an element depending on the variables passed. All variables are optional besides formId. inputId also accepts '*' to select all inputs.
```

##### Triggers
These triggers are assigned to the form will be fired during different repeater related events with the repeaterId and repeaterChildId attached to them.
```
beforeRepeat - Fires right before a repeater is about to be repeated.
afterRepeat - Fires right after a repeater has been repeated.
beforeUnRepeat - Fires right before a repeater is about to be un-repeated.
afterUnRepeat - Fires right after a repeater has been un-repeated.
gform_repeater_before_repeat - Fires right before a repeater is about to be repeated.
gform_repeater_after_repeat - Fires right after a repeater has been repeated.
gform_repeater_before_unrepeat - Fires right before a repeater is about to be un-repeated.
gform_repeater_after_unrepeat - Fires right after a repeater has been un-repeated.
gform_repeater_init_done - Fires after the repeater is done setting up. Also fires on the window when all repeaters are done setting up.
```

##### Information
Expand Down Expand Up @@ -198,24 +211,25 @@ and you're good to go!
**Warning: There is a slight possibility that development versions are unstable. Use at your own risk.**

### Version
1.0.8
1.0.9

### Changelog
##### 1.0.8
* Fixed bug where sometimes for some reason an input name would be sent as an array and cause a PHP error to display.
* Fixed bug where sometimes validation message would be displayed multiple times for same field.
* Fixed bug where filters would not be loaded if Repeater was the first field on the form.
* Fixed bug where sometimes captured repeater input data would be applied to other forms in cases where there are multiple forms on one page.
* Fixed prepopulation for checkbox and radio fields.
* Changed the way settings and field data is sent to Javascript so now monkey patching the input mask script is no longer necessary.
* Field input masks are now stored in gfRepeaters data. (gfRepeaters[repeaterId]['children'][childId]['inputMask'])
* Added support for conditional logic enabled fields!
* Added support for Repeater merge tags.
* Cleaned up formatting for text-only email notifications.
* Changed Repeater End Setting from 'doNotUse' to 'hideButtons'.
* Added Repeater Start Setting 'Hide Label & Description' to appearance tab.
* Repeater label now defaults to 'Repeater' instead of blank and adminLabel now defaults to blank instead of 'Repeater'.
* Repeater Javascript now initiates after 'gform_post_render' has been triggered instead of on window load.
##### 1.0.9
* Fixed bug where in some cases a PHP error would occur when attempting to automatically disable ajax on a form.
* Fixed bug where sometimes a javascript error would occur on date fields with a calendar icon.
* Fixed bug where removing a specific repeatId would cause some weird things to happen.
* Fixed bug where repeaters in a multipage form that are not on the first page would appear to have failed validation even if the form hasn't been submitted.
* Fixed bug where repeaters in a muttipage form that are not on the first page would forget their saved data and ignore their start setting.
* Fixed hideButtons setting.
* Added [gfRepeater-buttons], [gfRepeater-add], and [gfRepeater-remove] shortcodes.
* Added custom CSS option to repeater start and end fields.
* Added gf_repeater_hide_add and gf_repeater_hide_remove CSS classes.
* Added gfRepeater_select javascript function.
* Added 'gform_repeater_init_done' trigger to window and individual forms.
* Changed 'beforeRepeat', 'afterRepeat', 'beforeUnRepeat', and 'afterUnRepeat' triggers to 'gform_repeater_before_repeat', 'gform_repeater_after_repeat', 'gform_repeater_before_unrepeat', and 'gform_repeater_after_unrepeat'.
* Repeated fields now respect conditional logic from outside the repeater.
* Applying conditional logic on a repeated section field now also applys that logic on repeated fields under that section.
* When exporting entries, repeater child data is now exported in a comma-separated list.

### Requirements
* Wordpress 3.9 or later
Expand Down
28 changes: 27 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: KodieGrantham
Tags: gravityforms, gravity, forms, form, gravityforms, repeater, repeat, duplicate, duplication, field, fields
Requires at least: 3.9
Tested up to: 4.4
Stable tag: 1.0.8
Stable tag: 1.0.9

A Gravity Forms add-on that allows specified groups of fields to be repeated by the user.

Expand Down Expand Up @@ -46,6 +46,15 @@ A Gravity Forms add-on that allows specified groups of fields to be repeated by
You can place shortcodes inside of input labels, input descriptions, and HTML blocks!

* [gfRepeater-count] - Will output the current repeat number.
* [gfRepeater-buttons] - Will output both the '+' and '-' buttons.
* [gfRepeater-add] - Will output the '+' button.
* [gfRepeater-remove] - Will output the '-' button.

= CSS Classes =
You can use these CSS classes in the in the "Custom CSS Class" setting to do different things.

* gf_repeater_hide_add - Will hide the '+' button if placed in the repeater end css setting.
* gf_repeater_hide_remove - Will hide the '-' button if placed in the repeater end css setting.

= Check out the source on GitHub! =
<https://github.com/kodie/gravityforms-repeater>
Expand All @@ -71,6 +80,23 @@ Yes! Just go to the form editor and change the `Add HTML` and `Remove HTML` sett
4. A view of the front-end. The only visible difference will be the added `+` and `-` buttons.

== Changelog ==
= 1.0.9 =
* Fixed bug where in some cases a PHP error would occur when attempting to automatically disable ajax on a form.
* Fixed bug where sometimes a javascript error would occur on date fields with a calendar icon.
* Fixed bug where removing a specific repeatId would cause some weird things to happen.
* Fixed bug where repeaters in a multipage form that are not on the first page would appear to have failed validation even if the form hasn't been submitted.
* Fixed bug where repeaters in a muttipage form that are not on the first page would forget their saved data and ignore their start setting.
* Fixed hideButtons setting.
* Added [gfRepeater-buttons], [gfRepeater-add], and [gfRepeater-remove] shortcodes.
* Added custom CSS option to repeater start and end fields.
* Added gf_repeater_hide_add and gf_repeater_hide_remove CSS classes.
* Added gfRepeater_select javascript function.
* Added 'gform_repeater_init_done' trigger to window and individual forms.
* Changed 'beforeRepeat', 'afterRepeat', 'beforeUnRepeat', and 'afterUnRepeat' triggers to 'gform_repeater_before_repeat', 'gform_repeater_after_repeat', 'gform_repeater_before_unrepeat', and 'gform_repeater_after_unrepeat'.
* Repeated fields now respect conditional logic from outside the repeater.
* Applying conditional logic on a repeated section field now also applys that logic on repeated fields under that section.
* When exporting entries, repeater child data is now exported in a comma-separated list.

= 1.0.8 =
* Fixed bug where sometimes for some reason an input name would be sent as an array and cause a PHP error to display.
* Fixed bug where sometimes validation message would be displayed multiple times for same field.
Expand Down
6 changes: 3 additions & 3 deletions repeater.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
Plugin Name: Gravity Forms Repeater Add-On
Plugin URI: https://wordpress.org/plugins/repeater-add-on-for-gravity-forms/
Description: A Gravity Forms add-on that allows specified groups of fields to be repeated by the user.
Version: 1.0.9-dev7
Version: 1.0.9
Author: Kodie Grantham
Author URI: http://kodieg.com
GitHub Plugin URI: https://github.com/kodie/gravityforms-repeater
GitHub Branch: development
GitHub Branch: master
*/

define('GF_REPEATER_VERSION', '1.0.9-dev7');
define('GF_REPEATER_VERSION', '1.0.9');
define('GF_REPEATER_PATH', basename(__DIR__).'/'.basename(__FILE__));

add_filter('plugin_row_meta', 'gfrepeater_row_meta', 10, 2);
Expand Down

0 comments on commit f6c4888

Please sign in to comment.