Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

How to make fields All caps regardless of user input

Avatar

Former Community Member
I need this form to have everything in all caps regardless of user input... I had adobe acrobat pro 4.0 and it was able to do it just fine and easily... Im using Livecycle designer 8.0 and i dont see an option for this... any help is appreciated...<br /><br /><?xml version="1.0" encoding="UTF-8"?><br /><?xfa generator="AdobeLiveCycleDesigner_V8.0" APIVersion="2.5.6290.0"?><br /><xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/"><br /><template xmlns:xfa="http://www.xfa.org/schema/xfa-template/2.1/" xmlns="http://www.xfa.org/schema/xfa-template/2.5/"><br /> <subform layout="tb" locale="ambient" name="F"><br /> <!-- Conversion Options - Language=en Images=1 TextLabel=0 TextFlow=1 TextFlowFull=1 TextFlowNL=0 ParaLimit=1500 LineSpace=150 nJoinSpace=100 Page() Element() Object() Trace=0 <br /><br />E:\\LAST FIRST.pdf --><br /> <!-- Imported PDF Metadata: --><br /> <!-- PDF Version=1.6 --><br /> <!-- HostEncoding=0 --><br /> <!-- Creator=Acrobat PDFMaker 8.0 for Word --><br /> <!-- Producer=Acrobat Distiller 8.0.0 (Windows) --><br /> <desc><br /> <text name="title">ADDRESS</text><br /> <text name="creator">svcdlb1</text><br /> <text name="created">D:20071017074526- 07'00'</text><br /> <text name="issued">D:20071017075425- 07'00'</text><br /> </desc><br /> <!-- --><br /> <!-- Applying FontMapping File: C:\\Program Files\\Adobe\\Acrobat 7.0\\Designer 7.0\\ConvertPDF_FontMap.txt--><br /> <!-- Applying CharMapping File: C:\\Program Files\\Adobe\\Acrobat 7.0\\Designer 7.0\\ConvertPDF_CharMap.txt--><br /> <variables><br /> <script contentType="application/x-javascript" name="comment"> <br />//function comment(void)<br />//{<br />//Existing JavaScripts will not work as expected in the imported form. They must be manually verified/modified to work properly.<br />//comment() is an invalid function, a call to this function will stop the execution of PDF JavaScripts following this call.<br />//To enable the JavaScripts, modify the PDF JavaScripts to work with XFA and remove the call to this function.<br />//}<br /><br /> </script><br /> <?templateDesigner expand 1?></variables><br /> <pageSet><br /> <pageArea id="Page1" name="Page1"><br /> <medium imagingBBox="0in,0in,11.000in,8.500in" long="88.9mm" orientation="landscape" short="28.702mm" stock="custom"/><br /> <contentArea h="28.702mm" id="CA_Page_1" w="88.9mm"/><br /> <?templateDesigner expand 1?></pageArea><br /> <?templateDesigner expand 1?></pageSet><br /> <subform h="28.702mm" name="P1" w="88.9mm"><br /> <break before="pageArea" beforeTarget="#Page1"/><br /> <?templateDesigner expand 0?><br /> <field h="9mm" name="NAME" w="88.64mm" y="-0.26mm"><br /> <ui><br /> <textEdit><br /> <border presence="hidden"><br /> <?templateDesigner StyleID aped0?></border><br /> <margin/><br /> </textEdit><br /> </ui><br /> <font size="13pt" typeface="Myriad Pro"/><br /> <margin bottomInset="1mm" leftInset="1mm" rightInset="1mm" topInset="1mm"/><br /> <para vAlign="middle"/><br /> <caption reserve="0in"><br /> <font size="13pt" typeface="Myriad Pro"/><br /> <para vAlign="middle"/><br /> </caption><br /> <value><br /> <text>FIRST NAME LAST NAME</text><br /> </value><br /> <validate nullTest="warning"/><br /> </field><br /> <field h="9mm" name="ADDRESS" w="88.64mm" y="9.01mm"><br /> <ui><br /> <textEdit><br /> <border presence="hidden"><br /> <?templateDesigner StyleID aped0?><br /> <?templateDesigner StyleID aped0?></border><br /> <margin/><br /> </textEdit><br /> </ui><br /> <font size="13pt" typeface="Myriad Pro"/><br /> <margin bottomInset="1mm" leftInset="1mm" rightInset="1mm" topInset="1mm"/><br /> <para vAlign="middle"/><br /> <caption reserve="0in"><br /> <font size="13pt" typeface="
2 Replies

Avatar

Level 7
You can use FormCalc's "Upper(S1[,K1])" function or the JavaScript method ".toUpperCase()" in the "exit" event.

Avatar

Level 1

I figured it out. Go me!

Language = FormCalc

Show = exit

this.rawValue = upper(LastName)

I have been trying to figure this out to no avail. I am brand new to scripting so I'm sure I just don't know what I'm doing. I need to set up my form such that all values are all caps regardless of how they are entered. I've tried doing this both in FormCalc and JavaScript. Currently I have the Language set to JavaScript. I've selected the text field, then selected exit from the Show drop down. Should I have selected mouseExit instead? Can someone please tell me exactly what I need to put into the scripting box if the name of my field is LastName? This is what I have now:

var uc = LastName.rawValue;

LastName.rawValue = uc.toUpperCase()