Quantcast
Channel: Adobe Community : Discussion List - LiveCycle Forms
Viewing all articles
Browse latest Browse all 1160

How to validate checkboxes?

$
0
0

Hi All, may I ask your advice how to implement following items?

 

Software: Adobe LiveCycle Designer ES4

Usage: Create PDF form and allow user to save inputted records (with LiveCycle Server or Acrobat 9 Pro)

 

I tried to add three checkboxes for the test, and I would make sure:

1) Users should selected at least one checkbox before save.

2) If user selected checkbox 1, the form should not allow user to select checkbox 2 and 3.

3) User is allowed to select both checkbox 2 & 3, but not vice versa.

 

How can I add the validation rule for above checkboxes (if JavaScript is required, how to add it?),

Besides, if some coding is required, could you please provide some samples to me for follow-up?

 

e.g.

if (CheckBox1.rawValue == "0" && CheckBox2.rawValue == "0" && CheckBox3.rawValue == "0")

{

alert('Please select at least one record')

}

else if

{

  //I don't know >///<

}

 

Thank you very much (^人^)

 

 

 

 

 

 

 

 

 

 



Viewing all articles
Browse latest Browse all 1160

Trending Articles



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