Automated Paragraphs

B

Brenda A. Reid

WinXP
Office 2002

I have a template created where I'd like to automate some paragraphs based
on a users answer to some questions. Here is what I have:

{fillin "Are there any restrictions on objects? (y / n)"}

If the user answers y, the paragraph would read blah, blah, blah but if the
user answered n, then the paragraph would read yeah yeah yeah.

Any help to get me started would be great. Tks in advance . . .
 
G

Greg

Brenda,

FILLINs don't create a bookmark to reference. Try an ASK
and IF field combination:

{ASK Question "Are there any restrictions on objects?
(y/n)"}(IF { Question } = "y""Blah, Blah""Yeah,yeah" }
 
B

Brenda A. Reid

This looks like it's exactly what I need but when I open the .dot file, it's
only asking me the "fillin" fields and ignoring the Ask field. ???

This is what I have in my document:

{ASK restrictions "Are there any restrictions on objects? (y/n)"}

Further down in my document where the choice is to be made I have:

{IF restrictions = "n" "There are no restrictions on the objects."
"Restrictions on the objects and powers of the Company are as set forth in
Schedule 'A' hereto."}

Nothing seems to be happening . . .
 
G

Greg

Brenda,

That is the problem with ASK fields. Unlike FILLIN
fields, they do not fire a prompt automatically. You
could set the bookmark restrictions with a FILLIN nested
in a SET field:

{ SET restrictions{ FILLIN "Are there any restrictions on
objects? (y/n)"} }
-----Original Message-----
This looks like it's exactly what I need but when I open the .dot file, it's
only asking me the "fillin" fields and ignoring the Ask field. ???

This is what I have in my document:

{ASK restrictions "Are there any restrictions on objects? (y/n)"}

Further down in my document where the choice is to be made I have:

{IF restrictions = "n" "There are no restrictions on the objects."
"Restrictions on the objects and powers of the Company are as set forth in
Schedule 'A' hereto."}

Nothing seems to be happening . . .


Brenda,

FILLINs don't create a bookmark to reference. Try an ASK
and IF field combination:

{ASK Question "Are there any restrictions on objects?
(y/n)"}(IF { Question } = "y""Blah, Blah""Yeah,yeah" }
-----Original Message-----
WinXP
Office 2002

I have a template created where I'd like to automate
some
paragraphs based
 
M

melissa1005

Also, I believe that you can use REF fields when you use ASK fields:
{ASK restrictions "Are there any restrictions on objects? (y/n)"}{IF {REF
restrictions} = "n" "There are no restrictions on the objects."
"Restrictions on the objects and powers of the Company are as set forth in
Schedule 'A' hereto."}

Greg said:
Brenda,

That is the problem with ASK fields. Unlike FILLIN
fields, they do not fire a prompt automatically. You
could set the bookmark restrictions with a FILLIN nested
in a SET field:

{ SET restrictions{ FILLIN "Are there any restrictions on
objects? (y/n)"} }
-----Original Message-----
This looks like it's exactly what I need but when I open the .dot file, it's
only asking me the "fillin" fields and ignoring the Ask field. ???

This is what I have in my document:

{ASK restrictions "Are there any restrictions on objects? (y/n)"}

Further down in my document where the choice is to be made I have:

{IF restrictions = "n" "There are no restrictions on the objects."
"Restrictions on the objects and powers of the Company are as set forth in
Schedule 'A' hereto."}

Nothing seems to be happening . . .
 
G

Greg Maxey

Melissa,

Yes you can. BTW you don't really need the "REF" part, (i.e., {
restrictions } alone works equally well. I first suggested an ASK/REF
combination, but ASK fields will not automatically prompt when new documents
are created from templates containing ASK fields. FILLIN fields do, but
then they don't set a bookmark. A FILLIN nested in a SET field achieves
both :)
 
B

Brenda A. Reid

This has worked beautifully -- just wanted to say thanks to Grey and Melissa
who responded to my plea!
 

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

Top