16 if ( ! class_exists(
'GF_Chained_Field_Select' ) ) {
17 gravityview()->log->error(
'The Gravity Forms Chained Select Add-On is not active.' );
23 gravityview()->log->debug(
'search-field-chainedselect.php - No choices for field' );
54 <div
class=
"gv-search-box gv-search-field-chainedselect">
56 <label
for=
"search-box-<?php echo esc_attr( $search_field['name'] ); ?>"><?php echo esc_html(
$search_field[
'label'] ); ?></label>
60 echo strtr(
'<div id="field_{form_id}_{field_id}">{input}</div>', array(
61 '{form_id}' =>
$form->ID,
62 '{field_id}' =>
$field->ID,
69 $(
'select',
'.gv-search-field-chainedselect').on(
'change',
function( e ) {
70 window.gform.doAction(
'gform_input_change', e.target, <?php echo (
int)
$form->ID; ?>, <?php echo (
int)
$field->ID; ?> );
73 echo strtr(
'new GFChainedSelects( {form_id}, {field_id}, {hide_inactive}, "{search_layout}" );', array(
74 '{form_id}' =>
$form->ID,
75 '{field_id}' =>
$field->ID,
static getInstance( $passed_post=NULL)
$hide_inactive
Choose whether to hide inactive dropdowns in the chain.
static by_id( $form, $field_id)
Get a by and Field ID.
$alignment
Prevent Chained Select Search Bar input fields from outputting styles.
if(! class_exists( 'GF_Chained_Field_Select')) if(empty( $search_field['choices'])) $form
gravityview()
The main GravityView wrapper function.
gv_empty( $value, $zero_is_empty=true, $allow_string_booleans=true)
Is the value empty?