Creating A Defaults Button
Creating A Defaults Button
print
$query->defaults('button_label')
defaults() creates "reset to defaults" button. It
takes the optional label for the button ("Defaults" by default). When the user
presses this button, the form will automagically be cleared entirely and set to
the defaults you specify in your script, just as it was the first time it was
called.
|