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

How i do write more than specific IF statement at the same time!!

$
0
0

I am trying to use an IF / ELES formula in JavaScript to autopopulate a text field in a table, but I keep  getting a syntax error.

Could someone please help?

 

and I want to write a specific text on cells from an table, but before I want to check if this cell was empty or not, if empty (this cell1.rawValue = "text") eles must go to cell 2 and testing eles to the next. And so on.

 

Tabel1

1yes
2no

 

tabel2| 

cell1      "text"
cell2               
cell3
cell4

 

 

 

something close to this may can help you understand me more: (this is not really code)

 

if tabel1.rawValue = 1

     and if tabel2.cell1.rawValue == null then

              tabel2.cell1.rawValue = "text"

            else

                    if tabel2.cell2.rawValue == null then

                       tabel2.cell2.rawValue = "text"

                    eles

                              if tabel2.cell3.rawValue == null then

                                 tabel2.cell3.rawValue = "text"

                             eles

                                       if tabel2.cell4.rawValue = null then

                                          tabel2.cell4.rawValue = "text"

eles

{

xfa.host.messageBox("There is no space in the table!!!");

}

 

 

thnak you! i wish you can help me!


Viewing all articles
Browse latest Browse all 5571

Trending Articles



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