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

Changing object from Hidden to Visible

Avatar

Avatar
Validate 1
Level 1
melo48173421
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
melo48173421
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

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

22-05-2015

Hi guys,

Currently struggling to get items that I have marked as hidden (exclude from layout) to become visible. At this point I am trying to get different objects to become visible depending upon which radio box they select. I have tried adding the Javascript for one of the radio boxes as follows:

if (form.main.status1.sessionwaitlisted.rawValue == 2)

  {

form.main.email.presence = "visible";

}

This has continuously failed... And since then I have download the most recent version of LC, where I can select to add an action as per screen shot..

766914_pastedImage_1.png

However, I am still unable to get the action to work when I am in preview mode. I achieve nothing..

766915_pastedImage_3.png

Any help would be greatly appreciated.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 1
Level 2
alcdtrainer1
Level 2

Likes

2 likes

Total Posts

31 posts

Correct Reply

6 solutions
Top badges earned
Boost 1
Applaud 5
Applaud 25
Affirm 5
Affirm 3
View profile

Avatar
Boost 1
Level 2
alcdtrainer1
Level 2

Likes

2 likes

Total Posts

31 posts

Correct Reply

6 solutions
Top badges earned
Boost 1
Applaud 5
Applaud 25
Affirm 5
Affirm 3
View profile
alcdtrainer1
Level 2

25-05-2015

Hi melo,

Since i coudn't see the "email" field on the form, i couldn't say whether there is any issue with the script that you have used.

But, please try using the following script instead:

xfa.resolveNode("form.main.........email").presence = "visible";

Also, make sure that you are not hiding the subform that has email object in it.

Thanks,

Kumar

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
Level 2
TB17
Level 2

Likes

6 likes

Total Posts

20 posts

Correct Reply

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

Avatar
Validate 1
Level 2
TB17
Level 2

Likes

6 likes

Total Posts

20 posts

Correct Reply

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

27-05-2015

Also, make sure you're saving and/or previewing the form as a "Dynamic" form not Static.