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

Change Event problem

Avatar

Avatar
Validate 1
Level 2
Mar_J
Level 2

Likes

0 likes

Total Posts

29 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 2
Mar_J
Level 2

Likes

0 likes

Total Posts

29 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
Mar_J
Level 2

09-06-2009

Is there anything wrong with this code?

if(this.rawValue == 1 &&form1.Data.options.feesG.fees == 1)

{

form1.Page1Subform.Space.presence = "hidden";

}

else

{

form1.Page1Subform.Space.presence = "visible";

}

When I put it in the change event of a checkbox, I receive a Runtime error and LC shuts down.

Any help would be appreciated.

thanks.

Replies

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

612 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

09-06-2009

The only thing is the second condition should have a rawvalue on it ....also ....I would wrap the different conditions in their own brackets like this:

If ((this.rawValue == 1) && (for,m1.Data.options.feesG.fees.rawValue == 1))

Neither of those should cause a crash ...if it continues post the form and I will have a look.

paul

Avatar

Avatar
Validate 1
Level 2
Mar_J
Level 2

Likes

0 likes

Total Posts

29 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 2
Mar_J
Level 2

Likes

0 likes

Total Posts

29 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
Mar_J
Level 2

09-06-2009

Thank you Paul.

Fixed the code and put it in the change event of a Radio Button and the form works the way I need it to.