Forums: How to save all data in the database in upper case - Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How to save all data in the database in upper case

#1 User is offline   admin 

  • Administrator
  • PipPipPip
  • Group: Admin
  • Posts: 16102
  • Joined: 03-February 03
  • Gender:Male

Posted 09 July 2014 - 02:14 AM

To do so add the following code to BeforeAdd/BeforeEdit events (C#):

foreach(var field in values.ToList())
{
     values[field.Key] = field.Value.ToString().ToUpper();
}

return true;


If you also want all text to appear in upper case as it being entered add the following to 'Custom CSS' section in Style Editor.

.rnr-control input, .rnr-control select, .rnr-control textarea 
{ text-transform: uppercase; }

Best regards,
Sergey Kornilov
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users