Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

legallogic-DqvA
legallogic-DqvA
Offline

Badges

Badges
14

Accepted Solutions

Accepted Solutions
2

Likes Received

Likes Received
0

Posts

Posts
89

Discussions

Discussions
1

Questions

Questions
88

Ideas

Ideas
0

Blog Posts

Blog Posts
0
Top badges earned by legallogic-DqvA
Customize the badges you want to showcase on your profile
Re: how do you assign script (uppercase/sentence case) output to a variable? - Adobe LiveCycle 25-01-2010
Niall,Thanks that's much clearer;so to take a field (FirstName) in which you have data "sarah" to uppercase and lowercase,on the exit event for "firstname" would you then be able to go something like....var str = this.rawValue; try{ if(!js.isEmpty(this.rawValue)) {var FirstNameUpper = js.allUpper(str);var FirstNameSC = js.firstCharUpper(str);}}catch(e){app.alert(e)} to arrive at two var's you could call in the a1 + b3 + FirstNameUpper + a2 style ? sorry if i'm being dumb (code is still quite new...

Views

577

Likes

0

Replies

0
Re: how do you assign script (uppercase/sentence case) output to a variable? - Adobe LiveCycle 25-01-2010
Hi Niall,the multiple a1.value + A3.value + etc is working fine (using java)I just have absolutely no idea HOW to call the function Raghu provided and assign the two outputs (UC and SC) to the variables so they can be reused.... thats my point of confusion (for today at least !)thanks greg

Views

572

Likes

0

Replies

0
Re: how do you assign script (uppercase/sentence case) output to a variable? - Adobe LiveCycle 25-01-2010
Hi Niall,Thanks for that. The reason i'm trying to go to global variables is I won't actually be displaying the output onscreen i will be using the variables to enable me to produce output that then go a custom back end process.so you end up with code likeswitch (this.rawValue) { case "1": {output.rawValue = A1.value + a3.value + FirstNameUppercase (this is where i need help) + " " + LastNameSentenceCase (help) + A2.value} break; case "2":to produce an output field containing a text string that ...

Views

576

Likes

0

Replies

0
how do you assign script (uppercase/sentence case) output to a variable? - Adobe LiveCycle 24-01-2010
Hi, I posted a question and a forum user Raghu was really great, and helped to get a working demo going, but i'm still a bit lostthe demo form is attached, and as you can see Raghu has some cool code on the variables to make stuff go ALL CAPS and Sentence caps, which is what we need, and you can see that it works cause it is output to the text fields and appears correctly.Now thats cool, i suspect were 90+ % of the way there, but what i dont know how to do is to have the input text (the name fie...

Views

2.8K

Likes

0

Replies

11
Re: Making rawValue text data appear as Upper Case, Sentence case etc - Adobe LiveCycle 23-01-2010
works perfectly ! thanks

Views

826

Likes

0

Replies

0
Re: Making rawValue text data appear as Upper Case, Sentence case etc - Adobe LiveCycle 23-01-2010
that's really weird, i'm clicking file, form properties, variables - hitting the green +, adding name, say "dog" adding value, say "woof" but that does not go into heirachy right.... cant be accessed... i added your code (thanks for it) like that, and it does not stick..... really confused

Views

824

Likes

0

Replies

0
Re: Making rawValue text data appear as Upper Case, Sentence case etc - Adobe LiveCycle 23-01-2010
sorry, must have hit a filter, this is the filethanks

Views

823

Likes

0

Replies

0
Re: Making rawValue text data appear as Upper Case, Sentence case etc - Adobe LiveCycle 23-01-2010
hi Raghu,I tried to reproduce (learn by copying) what you did, so i did this form(attached) but something is wrong, i think with how i did the variablesany idea what i did wrong, i clicked file, form properties named it js andadded the script - but it looks different in the heirachy for some reasonthanks so much for the help

Views

820

Likes

0

Replies

0
Re: Making rawValue text data appear as Upper Case, Sentence case etc - Adobe LiveCycle 23-01-2010
Thanks, thats really helpful.

Views

825

Likes

0

Replies

0
Re: Making rawValue text data appear as Upper Case, Sentence case etc - Adobe LiveCycle 23-01-2010
hi, RaghuOne quick question, how would you change the code you have so that the output Uppercase and Sentence, instead of being put into text fields are stored as variables so that they can be reused all over the place i tried changing it likevar uC = this.rawValue;if(!isEmpty(uC)){uC.toUpperCase() = var NameUpper;uC.substr(0,1).toUpperCase()+""+uC.substr(1) = NameSentence;}}but that broke it, and also i tried defining the variables above tat level, so var Nameupper = firstnameupper.rawvalue but...

Views

824

Likes

0

Replies

0