Quantcast
Channel: Adobe Community : Popular Discussions - LiveCycle Designer
Viewing all articles
Browse latest Browse all 16286

Multiple condition If and statement

$
0
0

I am using the if statement below on a button. What I would like to happen is if Name, Address, City, State, Zip and Member (fields) are empty you get the message Please complete all required fields or if the Member(field) (which is a yes=1, no=2) radio button equal 1 and eitehr Class, Room, Return or Local are empty you will get that same message. But if either of these conditions are met then it clicks the printbutton1.

 

 

if ((Name.rawValue ==null) or

    (Address.rawValue ==null) or

    (City.rawValue ==null) or

    (State.rawValue ==null) or

    (Zip.rawValue ==null) or

    (Member.rawValue ==null) or

 

then

 

xfa.host.messageBox("Please complete all required fields to print.")

 

elseif

    (Member.rawValue == 1) and

    (Class.rawValue ==null) or

    (Room.rawValue ==null) or

    (Return.rawValue ==null) or)

    (Local.rawValue ==null))

   

then

 

xfa.host.messageBox("Please complete all required fields to print.")

 

else

 

PrintButton1.execEvent("click")

 

endif

 

Any assistance would be greatly appreciated.

Thanks

Parre


Viewing all articles
Browse latest Browse all 16286

Trending Articles



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