Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > JavaScript API > Examples

How to convert input into upper case

Scroll Prev Next More

 

To convert user entered data into upper case, use the following code in the JavaScript OnLoad event.

 

 

var ctrl = Runner.getControl(pageid, 'FieldName');
ctrl.addStyle('text-transform: uppercase;');

See also:

JavaScript API: Control object > addStyle()

JavaScript API: Control object

JavaScript API