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

How to fetch rawvalue of one field into another field in AL?

Avatar

Avatar
Level 1
revathyh7334429
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
revathyh7334429
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
revathyh7334429
Level 1

22-03-2018

i need to make a value say for example,

Textfield1 should be visible when textfield2.rawvalue=1

textfield1 should be invisible when textfield2.rawvalue=2

How do i write a javascript in textfield1 to achieve this logic?

Accepted Solutions (0)

Answers (3)

Answers (3)

Avatar

Avatar
Establish
MVP
_Bruce_Robertson
MVP

Likes

271 likes

Total Posts

1,782 posts

Correct Reply

372 solutions
Top badges earned
Establish
Give Back 25
Give Back 10
Give Back 5
Give Back 3
View profile

Avatar
Establish
MVP
_Bruce_Robertson
MVP

Likes

271 likes

Total Posts

1,782 posts

Correct Reply

372 solutions
Top badges earned
Establish
Give Back 25
Give Back 10
Give Back 5
Give Back 3
View profile
_Bruce_Robertson
MVP

18-04-2018

Hi,

Can you explain the problem more, your last comment seems to be the opposite of your original comment?

Bruce

Avatar

Avatar
Level 1
revathyh7334429
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
revathyh7334429
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
revathyh7334429
Level 1

17-04-2018

Thanks for your Answer.

But i need the value from Textfield1 and only at certain value i need the Textfield2 to be visible and not just in all exit cases.

Avatar

Avatar
Validate 1
Level 4
MinusZero
Level 4

Likes

30 likes

Total Posts

326 posts

Correct Reply

54 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 4
MinusZero
Level 4

Likes

30 likes

Total Posts

326 posts

Correct Reply

54 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
MinusZero
Level 4

22-03-2018

The javascript would probably need to be in textField2's events, maybe the exit event. When textField2 is exited, the event will execute.

textField2 Exit event javascript

switch(textField2.rawValue)

{

     case 1: //if textField is 1 when exited, execute this code

     textField1.presence = "visible";

     break;

     case 2: //if textField is 1 when exited, execute this code

     textField1.presence = "invisible";

     break;

     default: //this code runs when the above logic is not met

     //put code here that executes if when textField2 is exited, the rawValue isn't 1 or 2.

     break;

}