Hide and show text field

Stimulsoft Reports.Flex discussion
Locked
balaji
Posts: 3
Joined: Thu Oct 20, 2011 8:21 am
Location: pune

Hide and show text field

Post 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.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Hide and show text field

Post 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.
Berenice29
Posts: 4
Joined: Thu Oct 20, 2011 3:43 am
Location: london

Hide and show text field

Post 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();
});




HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Hide and show text field

Post 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.
Locked