Quantcast
Channel: Adobe Community: Message List - Enterprise Deployment (Acrobat and Reader)
Viewing all articles
Browse latest Browse all 6853

Re: Auto populate check box

$
0
0

Hey bhilyardthurston,

 

You might need to set the value of a field in the Mouse Up event of a check box and do this:

 

// Set the value of a text field to the export value of this check box if selected

var val = event.target.value;

var f = getField("Text1");

 

if (val !== "Off") {

    f.value = val;

} else {

    f.value = "";

}

 

This code will work with a radio button group, check box, combo box (dropdown) and listbox if the export value of the check box match the button/export value of the other field, but the last line should be changed to:

 

f.value = "Off";

 

for radio buttons and check boxes, and the default value for combo boxes and listboxes.

 

Hope this helps.

 

Regards,

Anubha


Viewing all articles
Browse latest Browse all 6853

Trending Articles



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