This topic is locked

Using Phprunner

3/31/2006 8:07:31 AM
PHPRunner General questions
C
Carlier author

Good morning,
I wonder if it is possible on a form to force in cap ou minus on text field ?
Because some user writte "France" ou "FRance" ou "FRANCE" or something "FRanCe" ....
And I would like to avoid correct flied on edit.
Thanks in advance
Alphonse Carlier

<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=2701&image=1&table=forumtopics' class='bbc_emoticon' alt=':o' />

Sergey Kornilov admin 3/31/2006

Hi,
you can do it using events.

Proceed to the Events[b] tab, select [b]Before record added and add some custom code.

See my example below:

function BeforeAdd(&$values)

{

$values["Make"]=strtoupper($values["Make"]);

$values["Make"]=strtoupper($values["Make"]);

}



where Make is your current field name.
Make the same for Before Record Edited event.