K
|
keithh0427 12/13/2019 |
Use 'trim' function the "Before record added" for the Add page and "Before record updated" on the Edit page. |
M
|
mhollibush author 12/14/2019 |
Use 'trim' function the "Before record added" for the Add page and "Before record updated" on the Edit page. For example on the add page: $values['country'] == trim($values['country']) On the edit page, use: $values['country'] == trim($values['country']) // assuming they are editing the field name in question. If they aren't editing it, you could use something like this: if ( $values['country'] == '' ) $values['country'] == trim($oldvalues['country']) // This gets any existing fields with spaces and may be redundant if the field is already trimmed Of course, use your field name, not my example (country)_
|