Hi, thanks for the ideas / thoughts. Yeah, basically, I will have to write some conditionals. No problem.. just more code :-)
Maybe a suggestion for a future CI, $conditional:
Code:
set_value($field[, $default = ''[, $html_escape = TRUE[, $reset_conditions = array()]]])
Parameters:
$field (string) – Field name
$default (string) – Default value
$html_escape (bool) – Whether to turn off HTML escaping of the value
$reset_conditions (array) - Condition to reset field value
So something like:
Code:
$reset_conditions = array(
'submitAnoter' => true,
'anotherCondition' => 10
);
<input type="text" name="quantity" value="<?php echo set_value('quantity', '0', , $reset_conditions); ?>" size="50" />
Sincerely,
Donovan