Skip to main content


 

Symptoms


Smartforms 4.6.11 - how to convert text to Upper case on change in an Item view
 

Diagnoses


We have a form with a text box. We are wanting to change an Item view 'text box control' to upper case on user input.

We are using the 'changed' event on the Text box.
When attempting to use an expression to convert the text ToUpper() for the required field, the change does not appear to work, unless a show message box entered before the change. Ive tried using 'transfer data' and setting control properties to update the text field.

 

Resolution

Set the conversion expression on a data label then add the following rule:

When Datalabel is changed
then set control's (textbox) properties(set the conversion expression)




 

This only happens when the page is initialy loaded (or refreshed), when the value is empty, and  I typed small caps, when I lose focus, it will be chaned to all caps, but when I eit again, it will not change anymore.


Reply