Results 1 to 3 of 3
  1. #1
    New Lounger
    Join Date
    Jan 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    {IF {INCLUDETEXT ? (2000 or 2003)

    Can one construct an IF field that incorporates an INCLUDETEXT field in the test expression of the IF?

    I have a Word form with various bookmarked text boxes and drop down fields. In the form there would be, for example, a drop down with a bookmark named A that offers the choices Yes and No; there is a text box with a bookmark named B that contains the text Plan B and a text box with a bookmark named C that contains the text Plan C.

    A separate document takes the parameters set in the form and uses them to grab appropriate text.

    So, there would be an IF field that says:

    If A = Yes then enter the text in B otherwise enter the text in C.

    I've tried variations on:

    {IF {INCLUDETEXT "entryform.doc" A} = "Yes" {INCLUDETEXT "entryform.doc" B} {INCLUDETEXT "entryform.doc" C}}

    It seems to get the "Yes" from field A, but still returns the text from field C.

    Any ideas for me to try? Is there some better way?

    Dave Kennard

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: {IF {INCLUDETEXT ? (2000 or 2003)

    Welcome to woody's Lounge!

    I found one newsgroup post in German stating that IF with INCLUDETEXT doesn't work, but it didn't give a solution. I experimented a bit, and I found that LINK instead of INCLUDETEXT does work.
    - Unprotect the form document.
    - Select a form field.
    - Copy it to the clipboard.
    - Switch to the other document.
    - Select Edit | Paste Special...
    - Select Unformatted Text and Paste Link.
    - Click OK.
    This inserts a LINK field. Build the IF expression using these.

  3. #3
    New Lounger
    Join Date
    Jan 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: {IF {INCLUDETEXT ? (2000 or 2003)

    Thanks, Hans.

    We were able to do what we needed using LINK rather than INCLUDETEXT. You pointed us in the right direction.

    Dave

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •