PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/
__________________________________________________________________

> I have a series of radio buttons called rbStatus.  Depending on which one
> is checked, I want the background colors of other fields to change.  Given
> that the buttons are labeled the same and only differ in the export value,
> I was not sure how to even start.

That's a good start. What you specify as the export value becomes the value 
of the "field" when a radio button is selected. What you need to do next is 
add some code to get the value of the field and act accordingly. But where do 
you place the code? One approach is to place the code in a text field's 
Calculate event. This event is triggered whenever any field value changes, as 
happens when a radio button is selected. It might look something like:

// See which color was selected
var v1 = this.getField("rbStatus").value;

// Change this field's fill color to the color selected
event.target.fillColor = color[v1];

This code assumes that you've specified color names contained in the pre-
defined Color object, such as blue, red, yellow, etc. You'll probably need to 
give more information if you need more help than this.

George


To change your subscription:
http://www.pdfzone.com/discussions/lists-pdfforms.html

Reply via email to