Expand my Community achievements bar.

LiveCycle ES2 XML convert string to uppercase

Avatar

Former Community Member

You cannot vote on your own post
Hello,

I need some help with a form. I am trying to learn XML and at 67 yrs. old it is difficult and I have little patience for hours of research. So a simple and concise explanation is required, please. 

I have just started to use LiveCycle ES2 for an Adobe form in the last 2 days. This is all very new to me. I have the form completed but would like to have one text input display only uppercase, <picture>text(A9A 9A9)</picture>, for a Canadian postal code. Where would I put and what code would I use to convert the Alpha to upper in my XML sheet. I have attempted to find an answer and see a number of options that I have no idea how to use. I could most certainly could go without this but I am a fussy old man, ask my wife.

I can add the complete <field> syntax if need be if that would make the explanation any easier.

TNX,  Bob 

1 Reply

Avatar

Level 4

Hi Bob,

Place the following code in the change event of the textfield to make the input upper Case.

xfa.event.change = xfa.event.change.toUpperCase();