Welcome Guest, Not a member yet? Register   Sign In
conditional set_value()
#4

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
Reply


Messages In This Thread
conditional set_value() - by dbrooke - 10-07-2016, 02:09 PM
RE: conditional set_value() - by RogerMore - 10-10-2016, 02:09 AM
RE: conditional set_value() - by PaulD - 10-10-2016, 04:22 AM
RE: conditional set_value() - by dbrooke - 10-10-2016, 08:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB