WD: Using the ASK Field with the IF Field in Word |
Q193194
To use the ASK field conditioned upon the value of another field, include the IF statement inside the ASK field instead of including the ASK statement in the IF field.
{ASK Married "Are you married?" \*Firstcap}
{ASK SpouseName {IF Married = "Yes" "What is your Spouse's Name?"
"Type 'none'"}}
{REF Married}
{REF SpouseName}
In this example, the second ASK field has an IF statement that determines
if the bookmark "Married" is equal to "Yes." If it is, the IF field has the
value "SpouseName." If not, the field has no value. The ASK field is not
updated if it does not have a valid bookmark name as the first element;
therefore, it does not ask the question.
{set SpouseName ""}
{ask Married "Are you married?" \* firstcap}
{ask{if{Married}="Yes" "SpouseName"}"What is your Spouses's name?"}
Additional query words: fill in conditional fillin
Keywords : kbdta wordnt winword ntword macword word6 word7 word95
Issue type : kbhowto
Technology :
|
Last Reviewed: November 4, 2000 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |