Hyperlink within an IF condition

D

Diane

Group,
I have an IF condition working that inserts text based on a field condition.
{If mergefield "day" = "S" "It is a sunny day"} although, I would like
"sunny" to be a hyperlink. I've tried adding the hyperlink, but it does not
work. Is this possible to add hyperlinks to an IF condition? Ex: {If
mergefield "day" = "S" "It is a {HYPERLINK "http://www.sunny.com"} day"}
 
P

Peter Jamieson

Not ones that actually function as a normal Hyperlink, it seems.

You can consider trying to do it by round-about methods such as:
a. create another document and put the text and hyperlinks you need in
there
b. bookmark the text and hyperlinks you need - e.g. call this one
"sunnyday"
c. create a bookmark that marks no text and call it "empty"

in your main document, use a nested INCLUDETEXT field such as

{ INCLUDETEXT "c:\\mylinks\\mylinks.doc" { IF "{ MERGEFIELD day }" = "S"
"sunnyday" "empty" } }

Just bear in mnd that you may need to merge to a new document, you may need
to select that document and update all the fields, and that they will remain
as INCLUDETEXT fields unless you unlink them.

You can probably do a similar thing using AUTOTEXT fields.

Peter Jamieson
 
D

Diane

Peter,
Interesting solution, I never thought of doing it that way, but definitely
will test this out. Thanks for your post!
 

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