Quantcast
Channel: Adobe Community : Discussion List - LiveCycle Forms
Viewing all articles
Browse latest Browse all 1160

Condition of two radio button are true then ...

$
0
0

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


Viewing all articles
Browse latest Browse all 1160

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>