Link dropdown selection to text box

  • Thread starter Thread starter Cranky
  • Start date Start date
C

Cranky

Hi

Is there any way of having the contents of a text box change depending
on the selected option in a dropdown box?

I want to have "father", "mother", "parents" in the dropdown. The
chosen option would then amend a text box later in the document to say
"he", "she" or "their".


Thanks in advance


Steve
 
Steve,

To avoid having to run a macro to populate the text field you can set
the dropdown to "calculate on exit" and then use an IF field to
display the right pronoun:

{ IF { DropDown1 } ="father""his" }{ IF { DropDown1 } ="mother""her" }
{ IF { DropDown1 } ="parents""their" }

All field code braces "{ }" are entered with CTRL+F9
 
To avoid having to run a macro to populate the text field you can set
the dropdown to "calculate on exit" and then use an IF field to
display the right pronoun:

<snip>

Greg, that works perfectly. Thank you!

Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top