'rows', 'type' => 'number', 'label' => __( 'Rows', '2ranq-forms' ), ); $settings['advanced'][] = array( 'key' => 'max_length', 'type' => 'number', 'label' => __( 'Character limit', '2ranq-forms' ), 'help' => __( 'Leave empty for no limit.', '2ranq-forms' ), ); return $settings; } /** * Prints the field. * * @param array $field The field settings. * @param int $form_id The form id. * * @return void */ public function render( $field, $form_id ) { $describedby = $this->describedby( $field, $form_id ); $rows = isset( $field['rows'] ) ? absint( $field['rows'] ) : 5; // After a failed send the visitor's text comes back. This is the field // where losing it hurts the most: the message itself lives here. $sticky = $this->sticky_value( $field, $form_id ); ?>