inputs['text'] ) ) { // Set field type. if ( rgars( $this->inputs, 'text/type' ) && $this->inputs['text']['type'] !== 'text' ) { $this->inputs['text']['input_type'] = $this->inputs['text']['type']; $this->inputs['text']['type'] = 'text'; } else if ( ! rgars( $this->inputs, 'text/type' ) ) { $this->inputs['text']['type'] = 'text'; } } // Prepare Select field. if ( isset( $this->inputs['select'] ) ) { // Set field type. $this->inputs['select']['type'] = 'select'; } // Prepare input fields. foreach ( $this->inputs as &$input ) { $input = Fields::create( $input, $this->settings ); } } // # RENDER METHODS ------------------------------------------------------------------------------------------------ /** * Render field. * * @since 2.5 * * @return string */ public function markup() { // Prepare markup. $html = $this->get_description(); $html .= sprintf( '%s %s %s', esc_attr( $this->get_container_classes() ), isset( $this->inputs['text'] ) ? $this->inputs['text']->markup() : '', isset( $this->inputs['select'] ) ? $this->inputs['select']->markup() : '', $this->get_error_icon() ); return $html; } } Fields::register( 'text_and_select', '\Gravity_Forms\Gravity_Forms\Settings\Fields\Text_And_Select' );