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
BedrockMission!

Learn More

View all

Sign in to view all badges

Probelm with converting a field to uppercase

Avatar

Avatar
Validate 1
Level 2
lpianwi
Level 2

Like

1 like

Total Posts

69 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
lpianwi
Level 2

Like

1 like

Total Posts

69 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
lpianwi
Level 2

13-06-2013

Hi All,

I am having problem with making the following code work. It is only when a value equivalent to 25 in the drop down is selected that the entry is converted to uppercase. I have the following code on the  Change event.

On Change Event:

 

if (RankdrpdwnList1.rawValue==25){

  xfa.event.change

= xfa.event.change.toUpperCase();

}

Please, I need help with this code.

Thanks

v/r

Tammy

Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

Avatar
Validate 1
Level 2
GeneveveX
Level 2

Likes

6 likes

Total Posts

60 posts

Correct Reply

5 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 5
View profile

Avatar
Validate 1
Level 2
GeneveveX
Level 2

Likes

6 likes

Total Posts

60 posts

Correct Reply

5 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 5
View profile
GeneveveX
Level 2

13-06-2013

Also, if you have this code on a drop down box, you will want to change it to be on the EXIT event instead of the change event. For drop down boxes it only works on the exit event; the value isn't "changed" until you exit the field.

Avatar

Avatar
Validate 1
Level 2
GeneveveX
Level 2

Likes

6 likes

Total Posts

60 posts

Correct Reply

5 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 5
View profile

Avatar
Validate 1
Level 2
GeneveveX
Level 2

Likes

6 likes

Total Posts

60 posts

Correct Reply

5 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 5
View profile
GeneveveX
Level 2

13-06-2013

Maybe try

if (RanddrpdwnList1.rawValue == 25) {

     this.rawValue = fieldName.rawValue.toUpperCase();

}

I don't know the field name for the data you are trying to convert, so you'll have to fill that in yourself.