Form Check Box Options
Question Info
Last updated April 14, 2025 Views 651 Applies to:
You would need to use a little bit of VBA code as follows
With ActiveDocument
If .FormFields("Check1").CheckBox.Value = True Then
.Variables("varAltText").Value = vbCr & "some text"
.range.Fields.Update
Else
.Variables("varAltText").Value = " "
End If
End With
Insert a { DOCVARIABLE varAltText } field before the end of paragraph mark (¶) of the paragraph before where you want the alternate text to appear.
You must use Ctrl+F9 to insert the { } and Alt+F9 to toggle off the display of the field codes.
1 person found this reply helpful
·Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
Do you (and will all of your document users) have access to Word 2010 or higher? If so, you might consider mutually exclusive content control checkboxes. This way the user can't inadvertently select both yes and no:
http://gregmaxey.mvps.org/word_tip_pages/mutually_exclusive_content_control_option_buttons.html
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
Oh no good. The brainiacs at MS didn't provide the checkbox CC until version 2010 :-(.
Another possibility is to use a dropdown with the list entries Yes and No.
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
Reported content has been submitted
Reported content has been submitted
Reported content has been submitted
Reported content has been submitted
Reported content has been submitted
Reported content has been submitted