Uppercase

20 Dec '11, 11:07 AM
41,687 Views
No Forum Badges

How uppercase the fields in entry unit after changed focus? It's possible writing directly in uppercase?

 
x 0
Follow
Answer Answer at this question and get points!
Forum Hero - Level 9

Hi Luisa,

if you want to change the case of an input Field you can create or modify the Field Template of the unit. In this case you can prepare a Javascript function which takes in input the value of the current field and returns the same value in uppercase. This function can be called with the onkeyup event.

For example:

<html:text [%onkeyPressed()%] [% if (maxLength != "") { %]maxlength="[%= maxLength %]"[% } %] size="[%= inputSize %]" styleId="[%= htmlId %]" styleClass="[%=styleClass%]" property="[%=fieldProp%]" readonly="[%= readOnly%]"/>

You can set the onkeyup event and the this.value=this.value.toUpperCase(); function:

<html:text [%onkeyPressed()%] [% if (maxLength != "") { %]maxlength="[%= maxLength %]"[% } %] size="[%= inputSize %]" styleId="[%= htmlId %]" styleClass="[%=styleClass%]" property="[%=fieldProp%]" readonly="[%= readOnly%]" onkeyup="this.value=this.value.toUpperCase();"/>

   
x 1
Answer at this question and get points!

Related questions

2 grids inside one/same cell result in non-selectable 2nd grid Access page variable in a page template add html Ajax and FCK Editor (WebRatio 5.x) Ajax is not working in own style project Ajax onchange and jQuery 2.x (with migrate plugin) incompatible Ajax on change selection field and modify units Ajax web app with javascript history object using the WebRatio Alimentar graficas con base de datos Alternate way to get current User Oid in layout template groovy script? Any way to localize the Tab Grid Template (Webratio Store)? Applicare un template ad un Web Project Autocomplete template Automatic date in form Automatic file upload Ayuda Simple List Component Layout personalizado Bootstrap Style BPMN: URL field Button to go on another page Cambiare dimensioni bottoni - Change button size Can I inject html into custom unit template?! Change color template bootstrap style Change Style Changing the login page does not work ckeditor - change directory for the browser Clean a form Colore Attributi index unit Dinamico - Index unit dynamic attribute color Como abrir una ventana en ajax desde una master page Como crear cambio de contraseƱa Como embeber un video subido desde archivo ? Como mostrar una imagen de portada arriba del menu? Como mostrar una imagen en una lista o en la componente detalles? Como tener dos botones juntos en un formulario independientes de una accion? Como usar la funciĆ³n autocomplete en un field Compare with the current time Confirm Dialog coupled mandatory fields Cryptic error when submitting a form Customize layout mobile platform Custom Tooltip Position Default error pages default login page Disabilitare campi durante evento AJAX Display contents of a URL Drop down menu question Dudas sobre modelado(Data Flow,Forms y Operation Create) Dynamic attribute/field names. Possible? Dynamic instantiation of fields on a page for any Class type Dynamic link labelling for Custom Unit Empty record mistakenly saved entry form logic. Entry Unit - Default field timestamp Entry Unity, Field Date Type Error Error in Excel Unit - Font size Export to a HTML/CSS/JS project Field as link soruce File CSS non considerato in generazione Form element Form template Get date pattern Get home page from template Getting the absolute path of a RTXBLOBData Google map is not shown properly in the tab grid Guardar Saltos de LINEA HelloWorld Unit sample code Hide form until a flow is triggered Hiding form components based on page conditions Hiding landmarks (or flows) when the user is logged in Hierarchy component How can i create pagemenu or landmarkmenu with multiple levels. How can I modified the htmls files to perform my style How I can receive the primary key value after adding into database from OK Port. How to add an image in a modal/pop-up window? How to include a template into other template? How to localize AJAX waiting dialog? How to localize the multi message unit in the notification layout How to modify template? How to modify the FertileEnviroment Default page How to redirect to the correct site view after a successful login attempt How to remove default Linked Resources? How to use LandmarkMenu as AJAX navigation how to use the landmark menu as AJAX navigation input mask integrate framework to webratio mobile Integrazione javascript Javascript and html javascript history object Localize "Welcome..." and "Process details" logo webratio meaning of each tag in the XML code (Show XML/Show Layout XML) modify field html Modify html generated by wr:NavigationBar Multi Entry Unit: How to forward only checked rows? Multi-Image Upload Multiple forms on one page. HTML5 input attributes. Possible? (2 questions) multi selections field problem Multi Selects didn't work in update page Pages Problem After Project Generation pass template variable Prelevare la chiave del record da una Selection Field in una Multiple Form Problem Login Form only if user not logged Problem print Problem saving multi selection from input Problems with the page refresh (Tab Grid) Problem with adding templates Progress bar when uploading big file(s) in a form? Pulire URL query unit who to hide fields that are used in a link Recursive Hierarchical Index Unit Style Tree Redirecting users to another site view Redirect to the default module Remove default BPM css import for all templates Resize fields Responsive Bootstrap Grid Responsive Layout Manager Search by Selector component does not work selection fields on cascade Select multiple files for upload Set context parameter Setting Upload directory Showing items that have a relation with an entity Simple Static Page Slot in Selection Field Standard confirm dialog replacement Style hierarchical unit help!! Supoort for Mobile and Desktop display Target tabs in Tab Grid Control Tooltip on a field Too much layout parameters = no scroll in parameters config window Update fields based on selection of other fields Updating attributes of an entity upload file and the move it to other location upload file html Use image as interaction flow Uso de la componente chart de webRatio Validacion validation fields Value Length (Min) fails to validate when field is empty? Vista de diferentes Site Views Webratio Add-ons no permite login WebRation - Create Navigation diagram What are the new features of WebRatio 6.1? which of these three models is closer to webratio/ifml way of creating web applications wr-ajaxDivs break layout on ajax pages.