Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

IF statement with two outcomes

$
0
0

I have an issue with an IF statement not producing the desired results; hoping that some of the experts here can readily solve the problem.

 

I have a series of textboxes (named PreBid1, PreBid2, etc.) that need to be populated with "Yes" and "No" answers AND make visible/invisible a button object. The answers are generated based on the selection of a radio button group.

 

 

if(form1.page1.subform1.status.rawValue == "Routine Oversight" || form1.page1.subform1.status.rawValue == "Enhanced Oversight" || form1.page1.subform1.status.rawValue == "Escalated Oversight"){

 

PreBid1.rawValue = "Yes";

Button1.presence = "visible";

}

else {

 

Button1.presence = "hidden";

PreBid1.rawValue = "";

}

 

The button's presence is working, but the PreBid1 text field is not populated with "Yes.". If I remove the Button1 statements, the Yes value populates.

 

I am sure this is simple, but I cannot figure it out.


Viewing all articles
Browse latest Browse all 5571

Trending Articles



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