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

radio button script for Livecycle static form

$
0
0

On my static Livecycle PDF form, I have a radio button group called Entry_type with 2 options. If option 1 is selected, I want another radio group called T_shirt to be not available. If option 2 is selected I want T-shirt to be mandatory. I want to validate these actions before the form can be emailed or saved.

 

I am a coding novice and have tried various scripts but they are not working. Here is my last attempt:


----- Form.Page1.Entry_type::click: - (JavaScript, client) -----------------------------------------

 

 

if (this.rawValue == 2){

  T_shirt.validate.nullTest = "error";

 

 

if (this.rawValue == 1){

 

   T_shirt.validate.nullTest = "disabled";

}

 

 

----- Form.Page1.Entry_type.Basic::click: - (JavaScript, client) -----------------------------------


Could someone help me with a correct Javascript or Folmcalc script?

 

Much appreciated.

Regards - Maggie


Viewing all articles
Browse latest Browse all 1160

Trending Articles



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