Hello rob,
Open up /wp-content/themes/infocus/lib/shortcodes/16-contact.php and change lines 76 - 81,
$required = ( $matches[1][$i] == 'captcha' ? 'captcha'
: ( empty( $matches[2][$i]['required'] ) ? false
: ( $matches[1][$i] == 'email' ? 'email'
: 'true'
)));
To this,
if ($captcha == true) {
$required = ( $matches[1][$i] == 'captcha' ? 'captcha'
: ( empty( $matches[2][$i]['required'] ) ? false
: ( $matches[1][$i] == 'email' ? 'email'
: 'true'
))); }
And then delete lines 161 - 186,
if( $captcha == 'true' ) {
$field_id = "mysite_field{$i}{$form_id}";
if( isset( $errored_fields ) )
$required_error = ( !in_array( $field_id, $errored_fields ) ) ? '' : ' required_error';
$out .= '<div class="mysite_form_row captcha_row">';
$num1 = rand(1,10);
$num2 = rand(1,10);
$label = $num1 .' + '. $num2 . ' ';
$out .= '<label for="' . $field_id . '">' . $label . '</label>';
$out .= '<input type="text" name="' . $field_id . '" id="' . $field_id . '" class="textfield required' . $required_error . '" value="' .
( isset( $_POST[$field_id] ) ? esc_attr( $_POST[$field_id] ) : '' ) . '" />';
$form_inputs['fields'][$field_id] = array( 'type' => 'captcha', 'label' => $label, 'required' => 'captcha' );
$form_inputs['fields'][$field_id]['captcha'] = $num1+$num2;
$out .= '</div>';
}
If that does not work for you then go ahead and revert the changes. Our devs know about this so we should hear a reply soon.