_nicename = __( 'Checkbox List', 'ninja-forms' ); add_filter( 'ninja_forms_merge_tag_calc_value_' . $this->_type, array( $this, 'get_calc_value' ), 10, 2 ); } public function admin_form_element( $id, $value ) { $form_id = get_post_meta( absint( $_GET[ 'post' ] ), '_form_id', true ); $field = Ninja_Forms()->form( $form_id )->get_field( $id ); $list = ''; foreach( $field->get_setting( 'options' ) as $option ){ $checked = ''; if( is_array( $value ) && in_array( $option[ 'value' ], $value ) ) $checked = "checked"; $list .= "
"; } return "