• Hi there,

    We have edited the postcode field of our form to use uppercase characters with this code: [text* postcode class:uppercase]

    This works fine at the input end, however the postcode is still outputted and stored in the DB as lowercase if the user didn’t capitalise themselves. We use another plugin (PDF Forms Filler for Contact Form 7) to output the forms to PDF, however this value is still lowercase. Please could someone advise how we can convert the postcode to uppercase at the front end AND in the outputted values?

Viewing 3 replies - 1 through 3 (of 3 total)
  • With class you’re giving just format (the way it is seen).

    I think you might need to pass characters (some useful functions, if Googles) to convert them.

    Thread Starter talbot649

    (@talbot649)

    Thank you for replying, but I don’t really understand… Can you advise what I would need to do to output the value in uppercase?

    I don’t know…

    How is data stored in database? A mail is sent or directly writes data in DB?

    If works with mail info, maybe you could use php function strtoupper() + wpcf7_before_send_mail to convert your text (write this stuff in functions.php).

    Not fluent with databases, but could be an option to do the conversion directly in DB?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Output field data in uppercase’ is closed to new replies.