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

How to make presence visible or invisible of a textfield

$
0
0

I have a list of textfield, i use itextsharp (C#) to valorize them.
For example i valorize the textfield: "topmostSubform.Page1.codice_articolo_0" with:

 

form.SetField("topmostSubform.Page1.codice_articolo_0", "value ");
form.RegenerateField("topmostSubform.Page1.codice_articolo_0");

if i valorize the textfield, i must make it visible, else if it has no value, i must make it invisible.

 

For every textfield i add this script:

 

topmostSubform.Page1.codice_articolo_0::docReady - (JavaScript, client)

if (this.rawValue==null){

          if (this.presence=="visible")

                    this.presence="invisible";

}

else {

          if (this.presence=="invisible")

                    this.presence="visible";

}

 

But it doesn't work, i have all the textfield invisible!

How can i resolve?


Viewing all articles
Browse latest Browse all 5571

Trending Articles



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