My form data needs to be entered in all UPPER CASE. Is there a way to do this?
- In your text element, go to the ADVANCED tab.
- In the ACTIONSCRIPT section, click on "Custom."
- In the "Actions" area, check the "Change" checkbox. (This will tell the script to activate any time the field is changed.)
- 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)
- Click OK. Code will then appear in that textarea that looks something like this:
function ff_ElementName_action(element, 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.")
- Change that code to:
function ff_ElementName_action(element, action) { if (action=='change') element.value = element.value.toUpperCase(); return element; } // ff_ElementName_action
- Click on the SAVE PROPERTIES button at the bottom of the screen to save the changes to the element.
- Click on the SAVE icon in the upper right-hand corner of the screen to save the form itself.
- Test it out -- it should work!