-------------------------------------------------------------------------------------------------------------------
Version 1.7.5
- Fixed issue with new form not displaying fields after first time it was saved
- Fixed issue with notification's conditional logic causing notifications to not be sent even when conditional logic was disabled
- Updated save_input function to delete from the rg_lead_detail_long table before deleting from rg_lead_detail
- Changed GFCache::flush() to prevent deleting persistent transients by default
- Various fixes for gaddon support
- Updated gf_vars js variable to be automatically included based on script-dependency
-------------------------------------------------------------------------------------------------------------------
Version 1.7.4
- Fixed bug in sending notifications when a form field is chosen
- Updated POT file
- Added support for object methods to the JavaScript hook framework.
-------------------------------------------------------------------------------------------------------------------
Version 1.7.3
- Changed form switcher so that it redirects to the main form settings tab when switching form while at any other form settings tab
- Updated post creation process to create post initially as a draft and then update to desired post status
- Fixed issue where merge tag drop down did not display items when a required extended name field was present
- Added new hook to prevent new forms from being created in the demo site
- Fixed issue with form duplication routine not duplicating confirmations and notifications
- Fixed issue with new notifications being created with the "enable conditional logic" checkbox checked
- Fixed issue with entry date timezone conversion when exporting entries
- Added JS hook: 'gform_is_value_match' allows filtering whether the source and target values are a match
- Added PHP hook: 'gform_is_value_match' allows filtering whether the source and target values are a match
- Fixed script path issue when registering scripts by using get_base_url()
- Added gaddon JS object for use with the upcoming add-on framework
- Added support for "tab_label" setting when creating "Settings Pages"
- Updated SaveForm() in js.php to delete the data that should no longer be stored in the form meta from the form object: 'notficadtion', 'notifications', 'autoResponder', 'confirmation', and 'confirmations'
- Fixed issue with calculating fields not working correctly when it contained another calculated field in its formula
- Updated JS GetFieldById() function to allow passing of input ID (i.e. "3.3")
- Added JS filter: 'gform_conditional_logic_description' allows you to modify the descriptive HTML (i.e. "Show/hide this field if any/all of the following match")
- Added JS filter: 'gform_conditional_object' allows you to modify the conditional logic object based on the object type
- Added 'gf_currency_config' to gf_vars array, one step closer to deprecating gf_global array
- Fixed several issues with unlocalized strings
- Fixed issue with notification logging message
- Fixed issue with file uploads where concurrent submissions may result in files being deleted or assigned to the wrong entry
-------------------------------------------------------------------------------------------------------------------
Version 1.7.2
- Fixed issue with enqueueing the wrong css file on the preview page
-------------------------------------------------------------------------------------------------------------------
Version 1.7.1
- Fixed conflict with minifiers because of @import statements in forms.css
-------------------------------------------------------------------------------------------------------------------
Version 1.7
- Fixed issue with jQuery tabs creating a Javascript error on the form editor page when using WP 3.6 beta
- Added language attributes to the preview page's html tag
- Fixed issue with entry limit and form scheduling validation on preview page not displaying the appropriate message
- Added div wrapper element with class name gf_submission_limit_message to submission limit message so it can be styled more easily.
- Added improved right to left (RTL) language support for the admin, preview page and front end.
- Added Gravity Forms specific classes to the dashboard widget to allow user styling
- Fixed issue causing legacy notifications to be reloaded after all notifications are deleted.
- Updated form settings submenu style to avoid issue where menu is hidden before it can be selected
- Updated update_lead() function so that it updates the cached lead.
- Fixed GFFormsModel::gform_get_meta_values_for_entries() when $entry_ids is empty
- Updated gfMergeTags class to trigger input's change event after tag inserted
- Fixed issue with form settings submenu hiding before mouse can move to it
- Fixed error when trying to resend entry notifications when no conflict mode is on
- Fixed bug in adminonly fields that were set to be dynamically populated from the querystring
-------------------------------------------------------------------------------------------------------------------
Version 1.7.beta2
- Fixed issue with calculation fields on currencies that use a comma as the decimal separator
- Updated Zip to ZIP
- Updated send_notifications() function to accept single path attachments (previously only supported arrays)
- Added support for WP Editor merge tag icons and applied to the Notification message textarea
- Moved GFNotificationsTable to notifications.php
- Fixed issue preventing modifications done from the gform_entry_post_save filter to not be available on notifications
- Added gform_entry_post_save filter to allow entries to be filtered after being saved
- Fixed issue where when accessing a new form and not adding any fields, unsaved changes notification is still triggered
- Fixed issue where "text" confirmations were having confirmation message replaced with default message when upgrading to 1.7
- Moved notification functions form form_settings.php to notifications.php
- Renamed the hook gform_confirmation_before_save -> gform_pre_confirmation_save
- Fixed issues with notification tooltips
- Fixed issue with preview page returning a 404 on sites where wordpress is running in a subfolder
- Removed the gform_before_form_settings_update javascript hook; use the gform_pre_form_settings_save php hook instead
- Renamed the javascript hook gform_before_form_editor_update -> gform_pre_form_editor_save
- Renamed the hook gform_notification_before_save -> gform_pre_notification_save
- Renamed the hook gform_before_email -> gform_pre_send_email
- Removed debug statement which caused a javascript error to be thrown in Internet Explorer when switching forms in the editor
- Fixed issue with calculated products not saving their values correctly
- Fixed conflict with Custom Post Types plugin causing JS errors
- Added mt-prepopulate class to "Default Value" setting on form field Advanced tab so the Merge Tag drop down does not include form fields
- Fixed issue with custom jQuery UI stylesheet being enqueued when file did not exist
- Added gform_admin_pre_render hook to notifications edit page
- Changed the form actions submenu hover class to make it more generic and applicable to all submenus.
-------------------------------------------------------------------------------------------------------------------
Version 1.7.beta1
- Fixed issue with notifications being sent with extra padding
-------------------------------------------------------------------------------------------------------------------
Version 1.7.alpha2.2
- Fixed backward compatibility of the gform_form_actions filter
- Added GFCache class to common.php and changed GFFormsModel::get_lead_field_value() and GFCommon::is_section_empty() to use GFCache.
- Fixed backward compatibility of the gform_custom_merge_tags filter
- Added group labels to new merge tag list
- Updated form settings to have gform_pre_form_settings_save filter and removed separation of standard and advanced settings
-------------------------------------------------------------------------------------------------------------------
Version 1.7.alpha2.1
- Updated Form Field title to be marked as required on new form creation modal
-------------------------------------------------------------------------------------------------------------------
Version 1.7.alpha2
- Moved legacy confirmation settings hook so that it is above the submit button
- Updated form settings menu (in form actions list) to match functionality for form settings menu in toolbar
- Updated conditional logic to be required for non-default confirmations
- Fixed issue where error icon was still displaying next to form title on new form modal
-------------------------------------------------------------------------------------------------------------------
Version 1.7.alpha1
- Fixed no-conflict scripts
- Cleaned up datepicker UI
- Added tooltip to merge tag icon
-------------------------------------------------------------------------------------------------------------------
Version 1.7.dev7
- Added caching to get_lead_field_value, is_section_empty and is_field_hidden to improve performance on long forms
- Fixed js issues when in no conflict mode
- Changed GFFormsModel::search_leads and GFFormsModel::count_search_leads to support searching across all forms (form_id = 0)
-------------------------------------------------------------------------------------------------------------------
Version 1.7.dev6
- Fixed issue with radio button Other choice not maintaining text when the form has conditional logic
- Fixed javascript errors being thrown when Gravity Forms set to No Conflict Mode
- Fixed issue with phone field not honoring the "No duplicate" field setting when phones are formatted slightly different
- Updated form settings page to not run filter gform_editor_js
-------------------------------------------------------------------------------------------------------------------
Version 1.7.dev5
- Added hook for changing args when getting all categories for post category fields
- Added animation to form settings sub sections
- Added the $form_id parameter to GFFormSettings::get_tabs($form_id) so tabs can be added conditionally. e.g. only show Quiz Settings when there's a quiz field on the form.
- Changed GFCommon::$errors from private to public because it's now used in GFFormSettings::get_confirmation_ui_settings()
- Added GFFormsModel::search_leads() and GFFormsModel::count_search_leads()
-------------------------------------------------------------------------------------------------------------------
Version 1.7.dev4
- Fixed potential security hole on form_display.php by using json_encode/json_decode instead of serialize/unserialize
-------------------------------------------------------------------------------------------------------------------
Version 1.7.dev3
- Updated form editor UI
-------------------------------------------------------------------------------------------------------------------
Version 1.7.dev2
- Re-added jQuery event trigger 'gform_load_form_settings' for backwards compatibility
- Added new JS filter 'gform_is_conditional_logic_field' to the form editor page
- Added support for resending notifications using the new notification structure
- Added form setting hooks to form editor page
- Added new JS filter 'gform_before_form_editor_update' to the form editor page
- Added new JS filter 'gform_before_form_settings_update' to form settings page
- Fixed issue with City sublabel having a dot in the ID attribute instead of an underscore
- Fixed issue with wpList script in WP 3.5 causing entry list trash and spam links not to work
- Updated form button UI to include text on WP 3.5+
- Updated gform.doHook function to call functions via window
- Fixed several styling issues with GF editor
- Added auto-focus to form title field when new form modal launched
- Added correct tabbing sequence for new form modal fields
- Added "Settings" link to Form Settings submenu
- Fixed issue with notification displaying validation errors where created with "Send To" set to "Field"
- Fixed styling issues on entry detail page
- Updated import/export pages to use new vertical tab format
- Fixed issue where notifications of type field were not being sent
- Fixed issue where confirmations were not in the legacy format when processing continues from paypal
- Fixed issue where checking "show values" option on multi-choice fields was generating a JS error
- Updated "Max Characters" field to only allow numbers to be entered
- Updated post creation to not fire Buddy Press' save_post function until the post data is complete
- Added new filter "gform_post_status_options" to allow addition of custom post status in field's post status setting
add_action('gform_post_status_options', 'add_custom_post_status');
function add_custom_post_status($post_status_options) {
$post_status_options['custom_status'] = 'My Custom Status';
return $post_status_options;
}
- Fixed issue where commas in checkbox post custom field fields with commas in the label/value resulted in multiple post meta values for a single checkbox value
- Updated confirmation settings ui and code to load editing into new page, removed functions no longer called
- Added confirm message when deleting a field or modifying/deleting a field choice that is depended on for conditional logic
- Updated loop in get_calculation_value to be a foreach loop to eliminate an extra time through when filter was set to false
- Added support for removing notifications
- Added support for handling admin messages
- Miscellaneous clean up
- Updated location of notification messages on the edit page to be under the page title
- Added new filter to allow new menu items on the Results toolbar item. Example usage:
add_filter("gform_custom_toolbar_button", "add_results_toolbar_button", 10, 2);
function add_results_toolbar_button($buttons, $form_id){
$capabilities = array("gravityforms_quiz_results");
$menu_items = array();
$menu_items[] = array(
'html' => '' . __('Quiz Results', "gravityformsquiz") . '',
'css_class' => '',
'capabilities' => $capabilities
);
$buttons[] = array(
'key' => 'gform_results',
'html' => ' ' . __("Results", "gravityformsquiz") . '',
'css_class' => 'gf_form_toolbar_results',
'menu_items' => $menu_items,
'capabilities' => $capabilities
);
return $buttons;
}
- Updated confirmations UI to better match new GF UI direction
- Added new filter "gform_pre_validation" to allow add-ons to modify the form object before validation
- Added new action "gform_view" to allow add-ons to add new views to the gf_edit_forms WordPress admin "page"
-------------------------------------------------------------------------------------------------------------------
Version 1.7.dev1
- Added is_default_column to the gform_entry_meta filter allow developers to define default columns for the entry list
- Fixed a warning notice with gform_get_meta when no key is found
- Added gform_field_added and gform_field_deleted jQuery event actions
- Fixed an issue which was causing gform_update_meta to insert multiple values for the same key
- Added gform_entry_meta filter to allow developers to add custom propeties to the lead object. Allows lead meta data to be added as sortable columns to the entry list and export entries file. Added the following functions to assist: GFFormsModel::get_entry_meta(), GFFormsModel::update_entry_meta(), GFSelectColumns::get_selectable_entry_meta, GFExport::get_entry_meta() and gform_get_meta_values_for_entries($entry_ids, $meta_keys)
Example usage:
add_filter( 'gform_entry_meta', array( 'GFQuiz', 'entry_meta' ), 10, 2);
public static function entry_meta($entry_meta, $form_id){
$form = RGFormsModel::get_form_meta($form_id);
$quiz_fields = GFCommon::get_fields_by_type( $form, array( 'quiz' ) );
if ( false === empty ( $quiz_fields ) ) {
$entry_meta['gquiz_score'] = array(
'label' => 'Quiz Score Total',
'is_numeric' => true,
'update_entry_meta_callback' => array('GFQuiz', 'update_entry_meta')
);
$entry_meta['gquiz_grade'] = array(
'label' => 'Quiz Grade',
'is_numeric' => false,
'update_entry_meta_callback' => array('GFQuiz', 'update_entry_meta')
);
$entry_meta['gquiz_percent'] = array(
'label' => 'Quiz Percentage',
'is_numeric' => true,
'update_entry_meta_callback' => array('GFQuiz', 'update_entry_meta')
);
$entry_meta['gquiz_is_pass'] = array(
'label' => 'Quiz Pass/Fail',
'is_numeric' => false,
'update_entry_meta_callback' => array('GFQuiz', 'update_entry_meta')
);
}
return $entry_meta;
}
public static function update_entry_meta($key, $lead, $form){
$value = "";
$results = self::get_quiz_results( $form, $lead, false );
if ( $key == "gquiz_score" )
$value = $results["score"];
elseif ( $key == "gquiz_percent" )
$value = $results["percent"];
elseif ( $key == "gquiz_grade" )
$value = $results["grade"];
elseif ( $key == "gquiz_is_pass" )
$value = $results["is_pass"] ? "1" : "0";
return $value;
}
- Added RGFormsModel::get_leads_where_sql() function to assist with get_leads() queries
- Fixed sending admin notifications with conditional routing when using PayPal's option to only send when payment is received
- Fixed register link on multi-site; goes to primary site's Form Settings
- Fixed notice (Undefined index: gforms_enable_akismet) when saving Form Settings and Akismet not installed
- Fixed 1000 character string limit for emails
- Updated Chosen script to its latest version (0.9.8)
- Fixed issue with Section break being displayed on {all_fields} even when marked as Admin Only
- Fixed issue with duplicate validation taking trash entries into account
- Added extra parameter to gform_merge_tag_filter hook
- Added hook: gform_register_init_script - Used to initialized init scripts via the add_init_script() function
- Fixed issue with conditional logic reset default value function which set drop down value to non-existant option resulting in JS errors
- Updated gform_field_values field to use esc_attr as additional prevention of cross-site scripting
- Fixed notice generated by hierarchical post categories
- Fixed issue where quantity was counted as 0 when a product's quantity field was hidden via conditional logic.
- Fixed issue with database permission error message.
- Fixed issue with static methods not being declared as static
- Added calcObj to parameters passed in gform_calculation_result() user function
- Added "gform_price_change" js event, triggers when any pricing field is modified
- Added "gform_calculation_formula" hook, allows modification of formula prior to calculation
- Fixed bug for multi-page ajax forms with progress bar starting at zero that are sent to PayPal Standard
- Fixed bug in get_credit_card_init_script that caused javascript error when Force SSL was turned on
- Fixed bug for when a calculated value was zero and it did not show in the email notifications or on the confirmation page
- Added spanish translation file
- Fixed warning thrown in has_conditional_logic when $form["fields"] is empty
- Updated "Edit Forms" menu navigation/page to be "Forms"
- Fixed conflict with some popup scripts (i.e. FancyBox) that caused the spinner to be displayed twice
- Updated AJAX calls using sack and jquery to not pass along a cookie because this caused the loading of admin-ajax.php to be aborted for some users
- Updated the display of the name of uploaded files to be escaped to prevent security issues.
- Fixed notice when max_label_size was not defined
- Fixed issue where fields that are not on the last page of a multi-page form and are marked to not allow duplicates were not going through duplicate validation
- Updated Settings UI
- Added gform_entry_detail_sidebar_before hook to allow text to be added before the first sidebar box on the entry detail page
add_action("gform_entry_detail_sidebar_before", "add_sidebar_text_before", 10, 2);
function add_sidebar_text_before($form, $lead){
echo "
Extra Cool Stuff
text added before!
";
}
- Added gform_entry_detail_sidebar_after hook to allow text to be added after the last sidebar box on the entry detail page
add_action("gform_entry_detail_sidebar_after", "add_sidebar_text_after", 10, 2);
function add_sidebar_text_after($form, $lead){
echo "
More Cool Stuff
text added after!
";
}
- Added gform_entry_detail_content_before hook to allow text to be added before the main content on the entry detail page
add_action("gform_entry_detail_content_before", "add_main_text_before", 10, 2);
function add_main_text_before($form, $lead){
echo 'Main Content Before |
---|
some stuff |
';
}
- Added gform_entry_detail_content_after hook to allow text to be added after the main content on the entry detail page
add_action("gform_entry_detail_content_after", "add_main_text_after", 10, 2);
function add_main_text_after($form, $lead){
echo 'Main Content After |
---|
some stuff |
';
}
- Added gform_append_field_choice_option_[field type] JS hook to allow additional options for each choice
- Added gform_load_field_choices JS hook to allow help text to be displayed below the choices
- Added gform_export_field_value filter to allow the value to be filtered during export
- Added gform_print_styles filter to allow styles to be included in the print entry page
- Added gform_export_fields filter to allow fields to be added/modified during export
- Added GFExport::add_default_export_fields($form) to refactor a fragment of duplicate code
- Added gform_choices_setting_title filter to allow the choice setting title to be changed
- Added gform_import_form_xml_options filter to allow add-ons to declare arrays during the import process
- Updated entry export to prompt user when no fields have been chosen
- Fixed notice "Undefined index: gf_form_id" displayed when exporting forms and no form chosen
- Added gform_form_settings filter to allow the settings displayed for a form to be changed (added, removed, modified)
- Added support for adding merge tag autocomplete
- Added support for the new notifications/confirmations form meta format for importing and exporting forms
-------------------------------------------------------------------------------------------------------------------
Version 1.6.4.5.11
- Fixed issue where only section headers were displaying in email notifications when using a multi-select with conditional logic
-------------------------------------------------------------------------------------------------------------------
Version 1.6.4.5.10
- Added filter to allow new choices to be filtered. Initially to support the Polls Add-On.
- Updated GFEntryList::get_icon_url() function to be public
-------------------------------------------------------------------------------------------------------------------
Version 1.6.4.5.9
- Fixed issue with conditional logic when using "is not" as the operator
-------------------------------------------------------------------------------------------------------------------
Version 1.6.4.5.8
- Updated field editor so that fields can only be dragged from the title bar
-------------------------------------------------------------------------------------------------------------------
Version 1.6.4.5.7
- Added drag and drop sorting functionality to selection field choices
-------------------------------------------------------------------------------------------------------------------
Version 1.6.4.5.6
- Fixed security vulnerability with password field
- Fixed conflict with Tabbed Widget plugin that caused the widget page to throw Javascript errors
-------------------------------------------------------------------------------------------------------------------
Version 1.6.4.5.5
- Fixed issue with field_values not being saved across AJAX validation failures
- Added Hungarian translation
-------------------------------------------------------------------------------------------------------------------
Version 1.6.4.5.4
- Replaced }) with } ) to alleviate conflict with some themes that replace }) with ]
-------------------------------------------------------------------------------------------------------------------
Version 1.6.4.5.3
- Added space between multiselect values on entry list view
- Fixed issue on confirmation page causing malformed markup and preventing progress bar from being displayed properly
- Added swedish translation
-------------------------------------------------------------------------------------------------------------------
Version 1.6.4.5.2
- Fixed issue where submissions (entries) could be created on forms that did not exist or that were inactive.
-------------------------------------------------------------------------------------------------------------------
Version 1.6.4.5.1
- Fixed issue with number field calculation not rounding correctly when entry is saved
- Added gform_shortcode_$action filter to allow Add-Ons to implement shortcode actions
add_filter("gform_shortcode_custom", "custom_action", 10, 3);
function custom_action($string, $attributes, $content){
$string = "custom shortcode action";
return $string;
}
- Fixed issue with total not being calculated on forms with animation and next button conditional logic
- Fixed issue with conditional logic value reset with pre-populated fields
-------------------------------------------------------------------------------------------------------------------
Version 1.6.4.5
- Fixed issue with conditional logic on jQuery 1.6.1 under certain circumstances
- Fixed issue where required quantity on single, hidden and cacluation products did not accept "0"
- Added logging infrastructure and a few log messages around multi-page file upload
- Fixed issue where inputs did not have calc events bound to change event
- Fixed issue where required quantity on single, hidden and cacluation products did not accept "0"
- Fixed issue with input mask not properly clearing value when form was submitted via the Enter key.
- Fixed issue with gform_product_info being added to meta even on non-product forms
- Fixed issue with default post category not being properly set
- Updated "GFCommon::is_post_field()" to be a public method (for use in User Registration Add-on)
- Fixed issue with number field failing validation when field was configured with commas for decimal separators
- Fixed issue with calculation not supporting the field number format setting
-------------------------------------------------------------------------------------------------------------------
Version 1.6.4.4
- Fixed issue with get_product_fields() function caching product fields for pre-submission entries (ones without an ID)
- Fixed issue with credit card field not updating card type as the card number is entered
- Fixed issue with init scripts being executed more than once
- Fixed issue with gf_global not being output on certain situations
- Fixed issue with post not being associated with entries
- Fixed some notice messages
-------------------------------------------------------------------------------------------------------------------
Version 1.6.4.3
- Fixed issue with notification url not accepting port number and cleaned up trailing slash and question mark when not necessary
- Fixed issue with shipping being displayed even when shipping is hidden by conditional logic
- Fixed issue with slow conditional logic on certain situations
- Added "create_lead()" function to allow creation of lead object prior to actually saving the lead
- Fixed issue with checkbox field reverting back to default selections after form is submitted
- Fixed issue with payment amount being displayed on entry details for payments of $0.00
- Fixed issue causing long entry values to not be displayed when server's localization changes the number format
- Fixed issue with quantity fields not updating total on blur
- Fixed issue where "No duplicates" option was not working on calculated fields on values above 999
- Fixed issue where jQuery prop function was not returning elem/value
- Fixed misc notices
- Added constant for min wp version and updated min version error to use this
- Fixed issue where hidden fields were not triggering calculation event
- Fixed an issue with character counter throwing errors when configured on admin only fields
- Fixed issue with shortcodes being executed as part of the post body template
- Fixed issue with default values being reset on forms with conditional logic
- Updated how gf_global js object was being enqueued and output to work around wp3.2 wp_localize script limitation
- Fixed issue with conditional logic when using the post category checkbox field as a target
- Fixed issue with no conflict mode blocking scripts for any ajax call
- Fixed issue with option and quantity fields not being properly re-assigned to another product field when the product field they are assigned to is deleted.
- Added validation to prevent option and quantity fields from being added to the form without a product field.
-------------------------------------------------------------------------------------------------------------------
Version 1.6.4.2
- Fixed issue with website validation not allowing port numbers to be entered
- Added override for jQuery "prop" method which defaults to using attr if prop not available
- Updated AJAX .submit() call, removing extra event data parameter that caused a conflict with some scripts
- Fixed issue with field calculation not taking fields hidden by conditional logic into account
- Moved Cardholder name under the expiration date on credit card fields
- Fixed issue with post image size merge tag drop down not saving its value properly
- Fixed issue where field calculations were not triggering conditional logic
- Fixed issue with {all_fields} displaying duplicate values
- Fixed issue with No conflict mode not enqueueing gravityforms.js on the form editor
- Updated Single Product field so that the field label is changed to match the pre-populated product name
- Fixed issue with Forms menu overriding other custom post type menus
- Fixed issue where number fields in HTML where chocking on comma-formatted numbers
- Fixed issue on form editor for forms that had hidden product fields
-------------------------------------------------------------------------------------------------------------------
Version 1.6.4.1
- Fixed issue with conditional logic throwing a javascript error.
- Fixed issue with price calculation rounding
-------------------------------------------------------------------------------------------------------------------
Version 1.6.4
- Fixed issue with notification failing when a comma separated list of emails was entered with spaces in between emails
- Fixed quantity validation so that it does not allow decimals.
- Fixed issue with chosen script not being enqueued properly when form had conditional logic
- Fixed validation issue with quantity field that didn't honor the min/max setting
- Removed "Enable calculation" option from quantity field
- Added step='any' attribute to number inputs when HTML5 is enabled
- Fixed javascript error on AJAX forms with credit card field
- Added id attribute to anchor
- Fixed issue with the WordPress HTTPS plugin integration
- Added new entry information fields to the entry export field list
- Updated conditional logic and merge tag drop downs so that a width is specified instead of truncating the value
- Fixed issue on notification merge tag drop down wrapping to next line when field labels were long
- Fixed issue with hidden product not taking quantity into account when calculating total
- Fixed issue with hidden product field preventing quantity from being populated dynamically
- Fixed issue with entry detail page not loading the entry that was clicked on entry list page
- Updated inline js so that it is now "enqueued" and consolidated into a single script block tied to the 'gform_post_render' event
- Fixed admin display issue with the bulk-add modal panel in Chrome
- Fixed warnings when nl2br used on array
- Added new choices for conditional routing to administrator notifications (greater than, less than, contains, starts with, ends with)
- Updated notification wysiwyg styles in admin
- Fixed issue with form editor not allowing users to uncheck the "Set as Post Image" checkbox
- Fixed issue where errors would be displayed when a "starts with" conditional logic was configured without the actual "starts with" value
- Fixed issue with quantity field being recorded as . when a value is not entered
- Fixed issue with a "Select Format" option appearing in the quantity field's number format option for newly created fields.
- Added hook to allow users to specify the page size on the entry list page
add_filter("gform_entry_page_size", "set_page_size", 10, 2);
function set_page_size($page_size, $form_id){
return 50; //sets page size to 50
}
- Updated the form editor so that the max characters option on single input field is hidden when input mask is enabled
- Updated checkbox field so that it can be pre-populated using an array in addition to a comma separated list
- Fixed notice for $read_only variable
- Fixed notice for postStatus
- Added support for calculations in Number field
- Added Calculation product type
- Added [gravityforms action="conditional"] shortcode
- Added support for showing lead on entry detail when LID or POS are passed. Always third parties to link directly to leads.
- Implemented support for {Product Name:1:qty} merge tag to allow the quantity of product fields to be returned via a merge tag
- Fixed issue with {all_fields} merge tag when using post category fields as target of conditional logic
- Added filter to allow changes to the recaptcha init screen
add_filter("gform_recaptcha_init_script", "custom_translation", 10, 3);
function custom_translation($script, $form_id, $field){
$script = 'RecaptchaOptions.custom_translations = {
instructions_visual : "Scrivi le due parole:",
instructions_audio : "Trascrivi ci\u00f2 che senti:",
play_again : "Riascolta la traccia audio",
cant_hear_this : "Scarica la traccia in formato MP3",
visual_challenge : "Modalit\u00e0 visiva",
audio_challenge : "Modalit\u00e0 auditiva",
refresh_btn : "Chiedi due nuove parole",
help_btn : "Aiuto",
incorrect_try_again : "Scorretto. Riprova.",
}';
return $script;
}
- Added support for {Total:1:price} merge tag to allow total to be formatted numerically
- Fixed issue of no results displayed when viewing a form that has a paged entry list and switching to a form that does not
-------------------------------------------------------------------------------------------------------------------
Version 1.6.3.1.2
- Fixed notices in form widget and when enabling no-conflict mode
- Fixed issue with entry list throwing database errors when sorting while filtering by starred or unread
- Fixed javascript error on form editor for IE7/8
- Fixed issue with entry detail page displaying an error when query string "pos" wasn't specified.
-------------------------------------------------------------------------------------------------------------------
Version 1.6.3.1.1
- Fixed bug with Post Category merge tags
- Fixed issue when AJAX forms getting displayed blank
- Fixed issue with product fields being added to entry even though they were hidden by conditional logic
-------------------------------------------------------------------------------------------------------------------
Version 1.6.3.1
- Fixed bug with conditional logic when applied to checkboxes
- Fixed issue where entry limit
-------------------------------------------------------------------------------------------------------------------
Version 1.6.3
- Fixed issue where entry limit was not being validated on form submssion
- Fixed issue where form schedule was not being validated on form submission
- Added no-conflict mode functionality
-------------------------------------------------------------------------------------------------------------------
Version 1.6.3.beta2.4
- Fixed issue with spinner when multiple forms are placed on the same page
- Fixed issue with AJAX multi-form not being displayed on some occasions
- Fixed issue with email validation when using {admin_email} on notification emails
- Added integration with ManageWP
- Fixed deprecated PHP functions
-------------------------------------------------------------------------------------------------------------------
Version 1.6.3.beta2.3
- Updated pricing fields so that they don't support the "Admin Only" option.
- Fixed issue with reCaptcha not changing languages properly
-------------------------------------------------------------------------------------------------------------------
Version 1.6.3.beta2.2
- Fixed issue when clicking on "enable values" in admin throwing javascript error; function SetFieldChoices was missing
- Fixed issue with non-customer facing error when there was no attachment
- Fixed issue with with submit button text always using default text
-------------------------------------------------------------------------------------------------------------------
Version 1.6.3.beta2
- Fixed issue when applying conditional logic to the submit button
- Fixed issue with non-translatable strings in JS files
- Added merge tag support for HTML fields
- Added hook to enable attachments to be added to notifications
- Updated POT file
- Added total entries to dashboard widget
- Added filter to customize dashboard widget title
- Fixed issue with dashboard widget table breaking outside of container
-------------------------------------------------------------------------------------------------------------------
Version 1.6.3.beta1
- Fixed issue with post author not being correctly set for posts configured to be created after payment is received
- Updated conditional logic to support other types of operation and other types of fields
- Updated search in admin to maintain the filter (starred, unread, spam, trash) so the filtered results you are viewing are what is searched
- Added field type (Multi Select, Drop Down, Radio, Checkbox) support to Post Category field
- Updated single product field so that its quantity is defauted to 1 when the quantity field is disabled
- Fixed notices in export and notification page
- Added setting to enable/disable Akismet
- Removed CDATA from scripts to prevent JS error on some browsers due to a character replacement done by WP core.
- Added hooks to enable CDATA wrapping
- Fixed issue with Date field not honoring the "No Duplicate" setting and allowing duplicate dates to be entered when they shouldn't
- Fixed issue with custom confirmation not working properly on AJAX forms
- Added back button to entry detail pagination
- Added pagination on entry detail page
- Fixed WP3.3 bug with {user:***} merge tag
- Fixed issue with chosen script initialization when field is target of conditional logic
- Added support for {admin_email} merge tag and using it as the default value for notifications instead of the actual admin email
- Updated admin paging total to not include items in the trash
- Updated admin paging links so that when an item is moved to the trash using the link, the counts are updated as necessary to reflect the change
- Updated admin paging links so that when an item is marked spam using the link, the counts are updated as necessary to reflect the change
- Fixed admin paging so that the filter carries through to the next page
- Fixed admin paging so that the counts displayed apply to the entry list you are viewing (all, unread, starred, spam, trash)
- Added "gform_akismet_enabled" hook which allows you to disable akismet integration
Documentation: http://www.gravityhelp.com/documentation/page/Gform_akismet_enabled
Example:
add_filter("gform_akismet_enabled", "__return_false");
- Updated enqueue and print scripts functions to always include jQuery, allows "gform_post_render" js hook to be accessible even when GF not using it
- Added 'eventName' parameter to ajaxSpinner submit event to allow third party integrations to target this specific event
- Added $ajax parameter to 'gform_pre_render' hook
- Updated field type menu on form editor page to prevent it from overlapping the form toolbar when a notice is displayed
- Fixed issue with textarea and input mask script on AJAX forms
- Fixed issue with multi-select fields on AJAX multi-page forms
- Updated progress bar to start at 0%
- Added ability to turn on/off progress bar and set completion text when displayed with the confirmation text
- Added "gform_progressbar_start_at_zero" hook to set progress bar back to previous behavior
Example:
add_filter("gform_progressbar_start_at_zero", "set_progressbar_start", 10, 2);
function set_progressbar_start($start_at_zero, $form)
{
return false;
}
- Added functionality to store a static copy of the product info when the entry is created
- Updated Really Simple Captcha to set a tabindex
- Fixed notice occuring when 'postFormat' property of form object was not present
- Added TinyMCE editor to notification page
- Fixed issue with main Gravity Forms permission that prevented the Forms menu from displaying the first time a new user logged in.
- Fixed issue with Simple Captcha field not validating because of an extra "input_" in the input's ID attribute
-------------------------------------------------------------------------------------------------------------------
Version 1.6.2
- Fixed issue with uploaded files not being properly deleted on multi-site installs
- Updated thickbox enqueuing so that it is done conditionally when WP < 3.3, since the conflict between thickbox and the UI tabs have been fixed in WP 3.3
- Fixed issue for ReallySimpleCaptcha with image/color display when changing size/font/background colors
- Fixed issue with preview link that is displyed after creating a new form
- Fixed notice messages
- Fixed link for reCaptcha sign-up
- Changed the way that the preview, print entry and column selection pages are requested so that they run within the WordPress page cycle instead of being called directly.
- Fixed issue with {all_fields:admin} not displaying admin labels for Single Product fields.
- Fixed issue with blank sections being displayed on {all_fields} merge tag.
- Fixed issue where content templates would return empty when a "0" was passed
- Added "gform_replace_merge_tags" hook which allows for the replacement of custom merge tags
Documentation: http://www.gravityhelp.com/documentation/page/Gform_replace_variables
Example:
add_filter('gform_replace_merge_tags', 'replace_download_link', 10, 7);
function replace_download_link($text, $form, $entry, $url_encode, $esc_html, $nl2br, $format) {
if(strpos($text, '{download_link}') === false)
return $text;
$text = str_replace('{download_link}', gform_get_meta($entry['id'], 'download_link'), $text);
return $text;
}
- Added "gform_custom_merge_tags" hook which allows for the inclusion of custom merge tags whereever merge tag drop downs are generated
Documentation: http://www.gravityhelp.com/documentation/page/Gform_custom_merge_tags
Example:
add_filter('gform_custom_merge_tags', 'custom_merge_tags', 10, 4);
function custom_merge_tags($merge_tags, $form_id, $fields, $element_id) {
$merge_tags[] = array('label' => 'Download Link', 'tag' => '{download_link}');
return $merge_tags;
}
- Added "gform_entry_created" hook which fires immediately after the lead has been created but before any lead specific functionality has processed
Documentation: http://www.gravityhelp.com/documentation/page/Gform_entry_created
Example:
add_action('gform_entry_created', 'generate_mergedoc');
function generate_mergedoc($entry, $form) {
$download_link = self::get_download_link($entry['id']);
gform_update_meta($entry['id'], 'download_link', $download_link);
}
- Added "gform_form_actions" hook which allows the modification of existing form actions and addition of new form actions
Documentation: http://www.gravityhelp.com/documentation/page/Gform_form_actions
Example:
add_action('gform_form_actions', 'add_mergedoc_link', 10, 4);
function add_mergedoc_link($actions, $form_id) {
$actions['mergedoc_settings'] = "" . __("MergeDoc", "gravityformsmergedoc") . "";
return $actions;
}
- Fixed issue with activation throwing errors when trying to remove old indexes.
- Fixed issue with Pricing fields displaying as $0.00 for text formatted notifications
- Updated issue where selecting "None" for Paging Progress Indicator option was not being re-populated correctly after updating the form
- Fixed issue with user defined price field not accepting $0.00 as a valid value
- Added ability to go back to a specific page when form valiation fails
- Fixed issue with radion button and checkbox pricing fields storing the selected items even when they had blank prices
- Fixed issue with escaping causing javascript errors on the entry list when language is set to French
- Updated the color_picker function in the GFFormDetail class to public (so Add-Ons can access it)
-------------------------------------------------------------------------------------------------------------------
Version 1.6.1
- Fixed issue with form preview returning a 404
- Fixed issue with credit card field not escaping translated text properly and causing issues with French translation.
- Updated 'gform_allowable_tags' filter to run on every field including post fields
- Fixed issue with form export including the node for non credit card fields.
- Fixed issue with gform_save_field_value filter not accepting values greater than 200 characters
- Fixed issue with last field in the form being saved with the value of the total field.
-------------------------------------------------------------------------------------------------------------------
Version 1.6
- Added additional version-specific IE browser classes to gform_wrapper
- Removed json.php. Using WordPress JSON class instead.
- Fixed issue where blank post meta keys are created when empty value is submitted
- Added support for running Gravity Forms setup from settings page based on "setup" query string. (ie. ?page=gf_settings&setup)
- Fixed issue with radio buttons when using jQuery 1.6.4 (Wordpress 3.3)
- Fixed issue with post images getting saved in a wrong folder (based on the date of the embedded post/page instead of the newly created post)
- Fixed debug notice messages
- Added support for merge codes :label to allow field labels to be conditionally written to the outputted only when the field has a value.
- Fixed issue with Post Format not being selected correctly in the form editor
- Added hook on preview.php file to enqueue custom styles
- Added Primary key to wp_rg_form_meta and wp_rg_lead_detail_long tables
- Fixed issue on checkbox merge tag when targeting specific checkbox item
- Added support for :currency and :price modifier on pricing merge tags
- Updated tooltip script printing so that only tooltip specific scripts are printed when calling wp_print_scripts();
- Updated "gform_confirmation_anchor" hook to affect AJAX forms and provide option for AJAX forms that allows you to specify an integer for the scroll position
- Fixed issue with thickbox script on upcoming WP 3.3
- Fixed issue with Post Custom Field (Date field type) not honoring date format when storing post meta
- Updated editor "Update Form" button to do a full refresh instead of AJAX
- Fixed issue with formatting and total calculation of the Swiss Franc currency
- Added ID attribute to the "Add Form" link
- Dynamically calculating WordPress root directory on files that are loaded outside the WP context (i.e. preview.php, select_columns.php)
- Added "gform_post_render" javascript hook to functions to bound to every form render on AJAX enabled forms.
Documentation: http://www.gravityhelp.com/documentation/page/Gform_post_render
Example:
jQuery(document).bind('gform_post_render', function(){
// code to trigger on AJAX form render
});
- Added support for additional date formats
- Fixed conditional logic issue on multi-page forms when AJAX is turned on
- Fixed issue where the full list of radio and checkbox items were displayed in the admin after editing a choice
- Fixed erroneous single quote from AJAX inline script block
- Fixed issue with conditional logic fields not making into notification email when sending notification after payment is made.
- Added "gform_allowable_tags" hook to allow enabling HTML or specific HTML tags for submitted data
Documentation: http://www.gravityhelp.com/documentation/page/Gform_allowable_tags
Example:
add_filter("gform_allowable_tags", "__return_true");
- Added browser class to gform_wrapper
- Added a form specific class to the confirmation container. "gform_confirmation_message_FORMID".
- Fixed issue where adding any post field to a form prevented the form from saving if Post Formats were not supported
- Fixed problem creating warning messages on radio button fields.
- Added extra classes to pagination steps
- Updated form editor UI
- Added Mask setting to Text Field.
- Fixed markup on form list page causing WP footer to overlap with long form list.
- Aded form advanced setting to require user to be logged in to view form and a configurable message.
- Added re-send notification functionality to entry list and entry detail page.
- Added Print to list of bulk action operations so that multiple entries can be printed at once.
- Added hook to change separator of entry export file.
- Added "Other" option to radio button field.
- Added tab index to shortcode and function to specify starting tab index.
- Added CDATA around scripts to ensure valid HTML.
- Updated shortcode wizard to remove square brackets( [ ] ) characters from form name when placed in the shortcode.
- Added duplicate field functionality.
- Added update message for bulk actions on entries list page.
- Added post format setting to main post fields (title, body).
- Added option to set post image field as a featured image.
- Added default value settings to simple name field
- Updated default price for options to $0.00 price instead of blank.
- Added visibility setting to product fields so that they can be hidden.
- Added trash and spam functionality.
- Added integration with Akismet.
- Fixed conditional logic problem when target values have single quotes.
- Fixed number field validation.
- Added support for 24 hour time on time field.
- Added Date drop down type to date field.
- Added new gform_after_submission hook that fires early in the process and deprecated gform_post_submission.
- Enhanced Limit entry option to allow (per day/week/month/year).
- Added hidden product field.
- Added list field type.
- Updated file upload field to increase security.
- Added lookup by form name on gravityform shortcode.
- Added checkbox merge variable to return a comma separated list of selected items.
- Updated product fields to improve pre-population via hooks.
- Added new easier to use field validation filter.
- Updated entry detail and notification emails to hide section break when all fields in that section are blank.
- Added validation so that option field does not get added to a form without a product field.
- Added hook for single product sublabels.
- Added support for merge tags in confirmation URL redirect field
- Added checkbox input type to Post Custom Field.
- Added an option to send emails in text format.
- Added rg_lead_meta table to be used by Add-On developers.
- Removed donation field button (still providing support for existing donation fields).
- Added option to use the "chosen" script on drop downs.
- Added multi-select field.
- Added multi-select field as input type for: Tag, Custom Field.
- Added checkbox (comma separated) to entry list.
- Added ability to save a predefined choice from the bulk add screen.
- Added list field to custom post field.
- Added hook for list field column.
- Added description placement setting (top label only).
- Added new merge tag for displaying Admin labels on notifications(create {all_fields:admin_label} and make it more flexible)
- Fixed issue with "gform_notification_format" filter not passing all of the parameters correctly
-------------------------------------------------------------------------------------------------------------------
Version 1.5.2.10
- Fixed issue with checkbox variable replacement creating a warning message.
-------------------------------------------------------------------------------------------------------------------
Version 1.5.2.9
- Replaced dot(.) in the state field ID with underscore.
- Disabling product state validation if field is configured for dynamic population
- Marked build_lead_array() function as public to allow developers to call it when performing custom entry queries.
-------------------------------------------------------------------------------------------------------------------
Version 1.5.2.8
- Added product price javascript filter to allow custom total calculation
function gform_product_total(formId, price){
return price + 100;
}
- Added gform_product_info filter to allow manipulation of the product list
- Removed custom class from field when displayed in the form editor
- Implemented gform_address_display_format on form display
- Fixed formatting issue with address field when state field was hidden
- Replace dot (.) in complex field's input IDs with underscores to prevent CSS problems when targeting the input
- Added gform_print_entry_header and gform_print_entry_footer hooks to allow users to add custom headers and footers in the Print Entry screen
- Added CSS rule to prevent a reported display issue where button panels were cut off by the container overflow in the form editor
- Fixed javascript error on drop down shipping fields when using WP 3.2 RC1
- Fixed issue with Post Custom Field template not saving value correctly
-------------------------------------------------------------------------------------------------------------------
Version 1.5.2.7
- Fixed issue with drop down fields hidden by conditional logic getting sent in notifications
-------------------------------------------------------------------------------------------------------------------
Version 1.5.2.6
- Added rgobj() function to better handle retrieving properties from objects
- Added new hook "gform_default_notification" to allow the default admin notification for new forms to be disabled
Documentation: http://www.gravityhelp.com/documentation/page/Gform_default_notification
Example:
add_filter("gform_default_notification", "__return_false");
- Fixed localization issues on a few strings
- Updated POT file
-------------------------------------------------------------------------------------------------------------------
Version 1.5.2.5
- Adjusted website field so that if the default value of "http://" is left in the field, it is saved as a blank value
- Fixed issue with shortcode wizard adding shortcode to wrong the tab
-------------------------------------------------------------------------------------------------------------------
Version 1.5.2.4
- Changed entry export so that entry date is timezone aware
-------------------------------------------------------------------------------------------------------------------
Version 1.5.2.3
- Updated jQuery attr("checked"), attr("disabled") and attr("selected") statements for compatibility with jQuery 1.6
- Fixed issue with form editor throwing errors on WP 3.2 on forms without page breaks
- Changed Print Entry page so that Admin labels are used when appropriate.
- Added "gfield_contains_required" class to main when it contains a required field.
- Fixed issue with checkbox option fields displaying blank options in the admin and PayPal
- Added Greenland to the list of countries
-------------------------------------------------------------------------------------------------------------------
Version 1.5.2.2
- Changed form action to a relative path instead of full URL
- Removed TwentyTen theme-specific styles from forms.css
- Minor updates to admin.css
-------------------------------------------------------------------------------------------------------------------
Version 1.5.2.1
- Updated jQuery property selector to include quotes
- Removed 'href' attribute from 'Edit' link to resolve IE issue where it triggered the onBeforeUnload event
- Updated admin styles to make 'Close' link cursor display as a pointer
- Added 'gform_admin_pre_render' hook to fire on Form Editor view
- Added renewal reminder to admin notifications
- Removed Category ID from category variable replacement
- Fixed issue with back-slashes being removed when saving entry
- Added gform_get_input_value hook to replace gform_get_field_value
-------------------------------------------------------------------------------------------------------------------
Version 1.5.2
- Updated reCAPTCHA API file
- Fixed issue with Post Category fields storing the wrong post when sub categories have the same name
- Fixed issue with Post Category field not displaying all categories in the form editor
- Fixed issue with drop downs not keeping selected item upon validation error when value is set to 0 (zero) and other item is selected by default
- Fixed issue with number of entries being written to the export files
- Fixed javascript error on Form Editor when "Enable Content Template" is checked, but nothing is entered in the template field
- Added JS escaping to prevent javascript error on Form Editor when translated AJAX error messages contain a single quote.
- Fixed issue drop downs not keeping selected item upon validation error when value is set to 0 (zero)
- Fixed issue with price calculation when conditional logic animation was enabled
- Added gform_validation_error in wrapper div when form fails validation
- Updated POT file
- Fixed error caused by GFCommon not being included when calling enqueue_function from functions.php
- Updated portuguese translation file
- Added gform_delete_lead hook
- Fixed problem with exporting/importing routing rules
- Fixed issue with product field validation when using Euro as currency
-------------------------------------------------------------------------------------------------------------------
Version 1.5.1
- Fixed problem with getting embed_post for {custom_field} variables
- Added rules to forms.css file to reset unordered list styles to defaults inside HTML blocks
- Cleaned up Notice messages
-------------------------------------------------------------------------------------------------------------------
Version 1.5.0.2
- Updated GFFormsModel::get_forms() to sort by "title ASC" by default
- Added autocomplete="off" to honeypot field when HTML5 is on
- Added shortcode support to entry limit and expired form messages
- Updated POT file
- Fixed File Upload and Post Field bug deleting field data when editing entry
- Fixed typo in validation message
-------------------------------------------------------------------------------------------------------------------
Version 1.5.0.1
- Localized string "of" in character counter message.
- Fixed issue with option field where checkbox and radio buttons items where not getting refreshed when the + and - button were clicked
- Fixed issue with currency formatting for currencies with commas as decimal points
- Added form specific version of "gform_validation" hook
- Fixed issue with gform_unique_id not escaping result before displaying
-------------------------------------------------------------------------------------------------------------------
Version 1.5.RC7
- Added "Disable Auto-formatting" option to form confirmations
- Added "Reset Views" and "Delete Entries" to the form list bulk action drop down
- Added "Settings" link to the plugins page
- Removed Thesis (theme) specific CSS rules from default forms.css file
-------------------------------------------------------------------------------------------------------------------
Version 1.5.RC6
- Added styles to admin.css for new toolbar element
- Implemented toolbar on Form editor, Notification and Entry list pages
- Added gform_countries filter to allow manipulation of the address field's country list
- Added gform_duplicate_message filter to allow customization of the default duplicate value validation message
- Populating content templates with the field's variable by default (applies to Post Title, Post Body and Post Custom Field)
- Fixed issue with Single Product and User Defined Product not displaying the Rule Settings
- Implemented Renew section on Settings page
- Limiting the number of items displayed in the admin for checkbox and multiple choice fields
- Fixed issue with user defined product field not formatting the entered value as currency
- Fixed issue with