Page 1 of 1

Hide and show text field

Posted: Thu Oct 20, 2011 8:25 am
by balaji
Can I know how do hide fields if there is no data?

For example, I have 2 fields side by side. One is Bank Name, another is DD Number.Depending on payment type i want to show or hide this two fields in report.
if payment type is cash then i want to hide Bank Name and DD Number and if payment type is DD Payment then i want to show Bank Name and DD Number.

Hide and show text field

Posted: Fri Oct 21, 2011 4:34 am
by Alex K.
Hello,

As a way you can use the Conditions. If fields is no data then set the "Component Is Enabled" property to false.

Thank you.

Hide and show text field

Posted: Sat Dec 03, 2011 4:55 am
by Berenice29
I want to hide and show my text box according to drop down select value. if user select drop down value "other" then i want show my text box and hide drop down list and he can select any value except other my text box is hide plz help me and give me sample code my code is here

$( function () {

if($("#subject").val()==="Other") {
$("#Sub").show();
$("#subject").hide();

}
else $("#Sub").hide();
});





Hide and show text field

Posted: Mon Dec 05, 2011 3:37 am
by HighAley
Hello.

You should create a variable in your report and change its value in case of drop down selection. You can get this value using Flex ExternalInterface.call() or ExternalInterface.addCallback() function for communication with JavaScript.

Thank you.