Quantcast
Channel: Adobe Community : Popular Discussions - LiveCycle Designer
Viewing all articles
Browse latest Browse all 16286

How do I change an objects value type depending on a Y/N Radio button?

$
0
0

I have the following code behind some Radio Buttons:

 

Form1645.Page3.TeeCrossSubform.TeeCross::exit - (JavaScript, client)

if Page3.TeeCrossSubform.TeeCross.rawValue = "N" {

    xfa.Page3.TeeCrossSubform.Disruptfield.access = "open";

    xfa.Page3.TeeCrossSubform.TeeCrossCC.access = "protected";

    }

else{

    xfa.Page3.TeeCrossSubform.Disruptfield.access = "protected";

    xfa.Page3.TeeCrossSubform.TeeCrossCC.access = "open";

    }

 

NOTE: I based this code on the following information (which may be wrong but I found nothing else on the subject): http://forms.stefcameron.com/2010/03/08/disabling-all-fields-within-subform/

 

No matter which radio button is selected (Y or N) the fields are all "open" or "unprotected".

 

Any help is greatly appreciated!


Viewing all articles
Browse latest Browse all 16286

Trending Articles



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