How can I design form templates to give textbox on checkbox click

H

Hard Worker123

I am trying to create a form template so that when you click on a checkbox,
another form field will appear. For example: I want to give someone the
option to put recommendations and the number 1)
But if they have more than 1 recommendation I want to be able to have them
click a checkbox and another (Number 2) textbox will appear.
Does anyone know how to do this or where i can go for some answers?

Thansk,
 
C

Cindy Meister

For this particular task, it would probably be simplest to link the EXIT
property of the checkbox with a macro that
1. unprotects the document
2. changes the HIDDEN font property of the form field range
3. reprotects the document without losing user input

Alternate approaches would be inserting an AutoText entry with the form
field or creating the form field from scratch.

The code for (1) and (2) you'll find on word.mvps.org as well as on my
website http://homepage.swissonline.ch/cindymeister.

The code for changing the hidden formatting could look like this:
ActiveDocument.FormFields("TheNameOfTheTextBox").Result.Font.Hidden = _
ActiveDocument.FormFields("NameOfCheckbox").Checkbox.Value
 
Top