• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: force an uppercase entry in a form field

force an uppercase entry in a form field 9 years 1 day ago #34952

Hello,
For registration of runners in a race, I want to know how to force the entry of a field "NAME", for example, in capital letters?
Thanks for your help.

Michel


Excuse me for my bad English.
The administrator has disabled public write access.

force an uppercase entry in a form field 8 years 10 months ago #35374

  • dragos
  • dragos's Avatar
  • OFFLINE
  • Administrator
  • Posts: 634
  • Thank you received: 117
Hello

If you are reffering at formatting the text when an user enters a value in a specific field than you can achieve this through CSS. Go to 'backend > Components > RSForm!Pro > Manage Forms > select your form > Properties > CSS&Javascript >' and enter this declaration for your field ID: text-transform:capitalize!important;

If you also want to save the entered value into the database with capital letters then you will need to create a custom PHP script in "Script called on form process" and use this function to achieve your scenario: strtoupper().

Find out more info in the following links:
www.php.net/manual/ro/function.ucwords.php
www.php.net/manual/ro/function.ucfirst.php
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!