spivurno
1/21/2014 - 10:58 PM

As of Gravity Forms v1.8.3.1 (and previous version) there is a bug where the compartive pricing on Option field labels (for selects) does no

As of Gravity Forms v1.8.3.1 (and previous version) there is a bug where the compartive pricing on Option field labels (for selects) does not display when the "Enable Enhanced User Interface" option is enabled. This snippet will automatically disable it so you don't have to manually disable the enhanced UI option on all your forms. Once this bug has been fixed, you can remove this snippet.

<?php
/**
 * As of Gravity Forms v1.8.3.1 (and previous version) there is a bug where the compartive pricing on Option field labels (for selects) does not display
 * when the "Enable Enhanced User Interface" option is enabled. This snippet will automatically disable it so you don't have to manually disable
 * the enhanced UI option on all your forms. Once this bug has been fixed, you can remove this snippet.
 */
add_filter( 'gform_pre_render', 'gform_disable_enhanced_ui' );
function gform_disable_enhanced_ui( $form ) {
    foreach( $form['fields'] as &$field ) {
        if( $field['type'] == 'option' )
            $field['enableEnhancedUI'] = false;
    }
    return $form;
}