JForm::setValue
Method to set the value of a field. If the field does not exist in the form then the method will return false.
Signature
public function setValue(string
$name,
[string
$group = null,
[mixed
$value = null]] )
Parameters
-
$name
- The name of the field for which to set the value.
-
$group
- The optional dot-separated form group path on which to find the field.
-
$value
- The value to set for the field.
Returns
- boolean
- True on success.