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

SAP Adobe form How to change text field value to upper

Avatar

Avatar
Validate 1
Level 1
Lymleon
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
Lymleon
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
Lymleon
Level 1

17-06-2019

Background

I have 2 Floating Field of Text Field type that are bind to same Context.

I would only like to have one of them to be shown in all UpperCase.

I've tried to include the below in its layout:ready

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

But with the above, it changes the rawValue of the 2nd Text Field.

Are there are any way to decoupled the behaviour?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 50
MVP
_Bruce_Robertson
MVP

Likes

269 likes

Total Posts

1,782 posts

Correct Reply

372 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 250
Boost 25
View profile

Avatar
Boost 50
MVP
_Bruce_Robertson
MVP

Likes

269 likes

Total Posts

1,782 posts

Correct Reply

372 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 250
Boost 25
View profile
_Bruce_Robertson
MVP

17-06-2019

Hi,

I don't think you can do what you are after without having a second floating field, one that is not bound but has a calculate event that takes the value from the other floating field and converts it to uppercase.

The code you have is fine, though if the value can be null you will get an exception (as null does not have a toUpperCase() method)

There is no equivalent of the text-transform CSS styling

Regards

Bruce

Answers (4)

Answers (4)

Avatar

Avatar
Validate 1
Level 1
Lymleon
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
Lymleon
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
Lymleon
Level 1

19-06-2019

Thanks for the input! Sadly, what I’m building is a form of PDF letter and there isn’t any event to be triggered after loading.

I’m doing the pre-processing of data before binding them to each individual floating fields.

thanks

Avatar

Avatar
Validate 1
Level 10
Mayank_Gandhi
Level 10

Likes

284 likes

Total Posts

1,105 posts

Correct Reply

182 solutions
Top badges earned
Validate 1
Contributor 2
Ignite 5
Ignite 3
Ignite 10
View profile

Avatar
Validate 1
Level 10
Mayank_Gandhi
Level 10

Likes

284 likes

Total Posts

1,105 posts

Correct Reply

182 solutions
Top badges earned
Validate 1
Contributor 2
Ignite 5
Ignite 3
Ignite 10
View profile
Mayank_Gandhi
Level 10

19-06-2019

Agree with Bruce here or if there is some explicit event that you can fire on another field to have it in lower case.

Avatar

Avatar
Validate 1
Level 1
Lymleon
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
Lymleon
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
Lymleon
Level 1

17-06-2019

Thanks for the reply but l’ve tried the code you provided and both the rawValue are still displayer in caps

Avatar

Avatar
Validate 1
Level 10
Mayank_Gandhi
Level 10

Likes

284 likes

Total Posts

1,105 posts

Correct Reply

182 solutions
Top badges earned
Validate 1
Contributor 2
Ignite 5
Ignite 3
Ignite 10
View profile

Avatar
Validate 1
Level 10
Mayank_Gandhi
Level 10

Likes

284 likes

Total Posts

1,105 posts

Correct Reply

182 solutions
Top badges earned
Validate 1
Contributor 2
Ignite 5
Ignite 3
Ignite 10
View profile
Mayank_Gandhi
Level 10

17-06-2019

Try this simple JS:

TextField1.rawValue=(TextField1.rawValue).toUpperCase();