Login
Please enter your email address and password to login to the help desk.
(leave blank if you forgot your password)
   Save my login information
 

IMPORTANT NOTE:

DUE TO STUCTURAL CHANGES, THE TICKET SYSTEM IS NO LONGER ACCEPTING TICKETS. IF YOU ARE A PAYING SUBSCRIBER, PLEASE LOGIN TO THE CROSSTEC SITE AND USE THE CLUB FORUMS. THE CLUB FORUMS CATEGORY WILL APPEAR RIGHT AFTER LOGIN IF YOU ARE A PAYING CUSTOMER:

>>> Click here to access the forums <<<

We will close the knowledgebase soon as well and move its contents into a new knowledgebase system.

Knowledge Base » BreezingForms » FAQ
Change Field to Uppercase

 

My form data needs to be entered in all UPPER CASE. Is there a way to do this?

 

1. In your text element, go to the ADVANCED tab.

2. In the ACTIONSCRIPT section, click on "Custom."

3. In the "Actions" area, check the "Change" checkbox. (This will tell the script to activate any time the field is changed.)

4. Click on CREATE CODE FRAMEWORK. (It's a link, though it doesn't look like one). A popup dialog box will appear that says:

Create code framework for action now?
(Existing code will be appended)

5. Click OK. Code will then appear in that textarea that looks something like this:

function ff_ElementName_action(element, action)
{
   switch (action) {
    switch (action) {
        case 'change':
            break;
        default:;
    } // switch
} // ff_ElementName_action

(Change "ElementName" in the first and last line of the code to match the NAME of your text element. This should be done automatically when you click on "Create Code Framework.")

6. Change that code to:

function ff_ElementName_action(elem, action)
{
  if (action=='change')
   elem.value = elem.value.toUpperCase();
  return elem;
} // ff_ElementName_action

 

7. Click on the SAVE PROPERTIES button at the bottom of the screen to save the changes to the element.

8. Click on the SAVE icon in the upper right-hand corner of the screen to save the form itself.

9. Test it out -- it should work!

 

Was this helpful? Yes No Print Pdf