Condition of two radio button are true then ...

Avatar

Avatar
Validate 1
Level 1
erik_crl
Level 1

Likes

0 likes

Total Posts

6 posts

Correct reply

2 solutions
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
erik_crl
Level 1

Likes

0 likes

Total Posts

6 posts

Correct reply

2 solutions
Top badges earned
Validate 1
Affirm 1
View profile
erik_crl
Level 1

01-12-2015

Hello Everyone,

Please excuse me if I am posting my question in the wrong group.

I'm running LiveCycle Designer ES ver: 8.2.

I've created a form that contains two different sets of radio buttons.

Using Javascript, I'm trying to write a piece of code saying:

if radio button 1 = "1" and radio button 4 = "1" then this textbox is readOnly, and greyed out.

My script is as follows:

form1.restrictions-positioned.restrictionFrequency::click - (JavaScript, client)

if (foodStuff.rawValue == "1")

{

    this.access = "readOnly";

    this.fillColor="216, 216, 216";

    this.border.edge.presence = "hidden";

}

This code is not working? Is it because I've placed it in the text box? What about the "Show" option. I've tried to place the code in "click", "validate", etc. with no results. (Note: I'm not sure of how to use this section either)

Your insight is appreciated.

Thanks,

Erik

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 1
erik_crl
Level 1

Likes

0 likes

Total Posts

6 posts

Correct reply

2 solutions
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
erik_crl
Level 1

Likes

0 likes

Total Posts

6 posts

Correct reply

2 solutions
Top badges earned
Validate 1
Affirm 1
View profile
erik_crl
Level 1

01-12-2015

I solve the issue.

The code now appears like so:

form1.restrictions-positioned.restrictionFrequency::click - (JavaScript, client)

if (foodrestriction.resolveNode("foodStuff").rawValue == "1")

{

    this.access = "readOnly";

    this.fillColor="216, 216, 216";

    this.border.edge.presence = "hidden";

}

Answers (0)