Acrobat User Community Forums

You are not logged in.     Log in to your AUC account.     Don't have an account? Sign up today

#1 2007-12-28 17:35:23

Karise
Member
Registered: 2007-12-28
Posts: 0

Changeable checkbox background

I'm trying to create a checkbox that the text field background color has three option dependent/interactive with on the end user's answer. (Red for No, Green for Yes, None for No answer)

I'm creating the form in Adobe Designer 7.0

Is there a way to create this?
Thank you. K


My Product Information:
LiveCycle Designer Pro 7 / Windows

Offline

 

#2 2007-12-31 14:31:33

pddesigner
Member

Registered: 2007-04-24
Posts: 64

Re: Changeable checkbox background

Right click the check box.

Click Properties, click the Actions tab, select Trigger: Mouse Up.
Select Action: Run a JavaScript

Click Add and paste this code into the box.

var f = this.getField("Box1");
f.fillColor = color.yellow;

Change the color.yellow to the color you want. Note: the Box1 refers to the name of your check boxes.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

AcrobatUsers.com  >>  User Groups • News • Events • Articles • Blogs • How To • Resources • Member Log in