This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 4

Force UpperCase


  1. eventura
    Member

    Hi Guys

    Is there any way to force the data to be converted to UPPERCASE, e.g.. automatically convert london to LONDON or w1 2hr to W1 2HR without having to get the user to do it?

    Any ideas?

    Cheers

    Chris

    Posted 9 years ago #
  2. Markstein
    Member

    Yes you can do it with CSS using the text-transform property. You would need to add the necessary CSS to the "Advanced CSS" section of the theme for your form.

    Posted 9 years ago #
  3. enuffsaid
    Member

    //Set field to UPPER CASE

    $sql = "update YOUR TABLE\n"
    "set YOUR FIELD = UCASE(YOURFIELD)";

    EnuffSaid

    Posted 9 years ago #

RSS feed for this topic

Reply