AutoText in IF Fields

G

Greg Maxey

I can create and autotext entry that contains a functioning dropdown
field:

E.g., Do you like soup: Yes/No

I can insert the autotext using the menu and the dropdown field is
present and functional.
I can insert the autotext using a field e.g., {AutoText "myText" } and
the dropdown field is present and functional. However, if I nest the
AutoText field in a conditional IF field, then the result displayed
does not contain the formfield part of the AT entry.

{If 1 = 1 {AutoText "myText"}""}
Do your like soup? "No formfield displayed"

Has anyone found a way to make this work?
 
G

Greg Maxey

Graham,

Clever, very clever. Thanks.

I jus spent a minute looking as it is just 0400. I was up for another
reason and checked for a replay. So I suppose to prevent an error you need
to have a second AutoText entry like a blank space or something to use if
the condition is false.
 
G

Graham Mayor

Correct!
0400?

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
G

Graham Mayor

I know what you meant - I wondered why you weren't asleep like normal people
;)

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
G

Greg Maxey

I'll spare everyone else the details, but it seems that just the other
day we were discussing sleep and the things that interupt it with age
;-)

Your reverse logic works to insert the AutoText with a dropdown field,
but for some reason the field doesn't update to display the AT with the
dropdown with a
ActiveDocument.Fields.Update statement in an OnExit macro run from the
previous field (The gory details are in my post "Range Madness and
Other Frustrations" in the VBA group) also the nested formfield in the
AT is present and functional, but it isnt' included in the tab sequence
with the other formfields. :-(
 

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