Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-04-2018, 02:04 PM
steelcity79 steelcity79 is offline legacy form fields conditional statements Windows 7 64bit legacy form fields conditional statements Office 2013
Novice
legacy form fields conditional statements
 
Join Date: May 2018
Posts: 1
steelcity79 is on a distinguished road
Default 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.
Reply With Quote
  #2  
Old 05-04-2018, 05:41 PM
Guessed's Avatar
Guessed Guessed is offline legacy form fields conditional statements Windows 10 legacy form fields conditional statements Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,969
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

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
Reply With Quote
  #3  
Old 05-04-2018, 07:15 PM
Charles Kenyon Charles Kenyon is offline legacy form fields conditional statements Windows 10 legacy form fields conditional statements Office 2013
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,125
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Try pressing Alt+F9 to toggle display of field codes.
Reply With Quote
  #4  
Old 05-05-2018, 04:02 AM
macropod's Avatar
macropod macropod is online now legacy form fields conditional statements Windows 7 64bit legacy form fields conditional statements Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
Reply

Tags
drop down, form fields



Similar Threads
Thread Thread Starter Forum Replies Last Post
legacy form fields conditional statements 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
legacy form fields conditional statements Focus wonky in my legacy form fields/table CindyHa Word 8 01-13-2015 05:37 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:28 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft