#1
|
|||
|
|||
legacy form fields conditional statements
Hi,
I've been doing a lot of searching and testing various solutions but I just cant get this to work. I want to display different bits of text depending on the selection in a drop down. I am using legacy form fields and have a dropdown called servicetype. I'm using nested IF statements in the form field {IF { REF servicetype } = "SERVICES1" "WHOOP 1" } {IF { REF service } = "SERVICE 2" "WHOOP2" } But when I protect the doc and switch test the dropdown the form field just sticks on displaying REF I've tried speechmarks round the bookmark name with no success. I'm using word 2013 any help would be greatly appreciated. |
#2
|
||||
|
||||
It works for me.
Verify the bookmark in the dropdown formfield is named the same as in your Ref field - you made a mistake in the code you showed. Include a tick on Calculate on Exit for that dropdown formfield. Make progress by testing at each stage 1. Create the field {Ref servicetype} and test it by changing the dropdown and verify that the Ref field updates when you move the cursor from the dropdown. 2. If step one is working as expected, try a simple nested {IF { REF servicetype } = "SERVICES1" True False} 3. If that shows True or False as you expect, replace the True with your preferred text. Test again 4. Finally, delete the False.
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#3
|
|||
|
|||
Try pressing Alt+F9 to toggle display of field codes.
|
#4
|
||||
|
||||
Your problem description suggests you've typed some or all of the nested braces. You can't do that - they must be created in pairs via via Ctrl-F9.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
Tags |
drop down, form fields |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
saving conditional statements | notalec | Mail Merge | 7 | 10-16-2017 09:34 PM |
How can I set up tab to go back and forth between legacy fields and content control fields in a Word | Ikajed | Word | 1 | 10-13-2017 06:06 PM |
Can't reset form fields (Word 2013) and conditional formatting | rogelinepaula | Word VBA | 24 | 01-07-2016 03:54 PM |
Legacy Form Fields Miscalculate | LauraL | Word | 2 | 09-21-2015 08:47 PM |
Focus wonky in my legacy form fields/table | CindyHa | Word | 8 | 01-13-2015 05:37 PM |