Expand my Community achievements bar.

Formatting drop-down boxes

Avatar

Level 1

Hi!

I have made two drop-down lists with two possible choices - Debit/Credit

Is there a way to make the second drop-down list showing the opposite choice - i.e I choose Credit in the first drop-down it automatically shows Debit in the next drop-down (instead of selecting it manually)?

Thanks!

-M-

3 Replies

Avatar

Level 6

Rather than two droplists how about one droplist firing off a textfield entry that you have scripted to the droplist selection.  This would work if your droplists selections have a one to one relationship.

Avatar

Level 1

Thanks a lot!

I guess this is a good suggestion - but this is my first ever design in Adobe designer, so maybe you can point me in the right direction??

-M-

Avatar

Level 6

start with your droplist and a text field (I'll call it textField1).

The following is a javascript on the "change" event of the droplist:

if (xfa.event.newText=="Credit")
{TextField1.rawValue="Debit"
}