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

radio button script for Livecycle static form

Avatar

Avatar
Level 1
msbhma
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
msbhma
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
msbhma
Level 1

14-09-2014

On my static Livecycle PDF form, I have a radio button group called Entry_type with 2 options. If option 1 is selected, I want another radio group called T_shirt to be not available. If option 2 is selected I want T-shirt to be mandatory. I want to validate these actions before the form can be emailed or saved.

I am a coding novice and have tried various scripts but they are not working. Here is my last attempt:


----- Form.Page1.Entry_type::click: - (JavaScript, client) -----------------------------------------

if (this.rawValue == 2){

  T_shirt.validate.nullTest = "error";

 

if (this.rawValue == 1){

   T_shirt.validate.nullTest = "disabled";

}

----- Form.Page1.Entry_type.Basic::click: - (JavaScript, client) -----------------------------------


Could someone help me with a correct Javascript or Folmcalc script?

Much appreciated.

Regards - Maggie

Replies

Avatar

Avatar
Validate 1
Level 1
sonya1
Level 1

Like

1 like

Total Posts

32 posts

Correct Reply

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

Avatar
Validate 1
Level 1
sonya1
Level 1

Like

1 like

Total Posts

32 posts

Correct Reply

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

16-09-2014

Hi,

Please try the below code

if(this.rawValue == "2")

{

T_shirt.presence = "visible";

T_shirt.mandatory = "error";

}

else

{

T_shirt.presence = "hidden";

}


Regards,

Sony

Avatar

Avatar
Level 1
msbhma
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
msbhma
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
msbhma
Level 1

16-09-2014

Thanks Sonya. I still could not get the script working but I appreciate your suggestion. I think I will try another tack. Regards Maggie