You would need something to then process the text to check for the question mark ...
You could customize the functions_lookups.php and alter the code to meet the needs of no spaces can be used:
PHP Code:
// text required validation
if (ereg('^txt_', $option)) {
$check_attributes = $db->Execute("select attributes_display_only, attributes_required from " . TABLE_PRODUCTS_ATTRIBUTES . " where products_id='" . (int)$product_id . "' and options_id='" . (int)ereg_replace('txt_', '', $option) . "' and options_values_id='0'");
// text cannot be blank
if ($check_attributes->fields['attributes_required'] == '1' and empty($value)) {
$check_valid = false;
}
}
Tidy up the $value in there before the test is done ...
Bookmarks