Thread: [Solved] Test Field Contents
View Single Post
 
Old 11-13-2020, 02:38 PM
macropod's Avatar
macropod macropod is offline Windows 10 Office 2010
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
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

Unless you've changed the defaults, an 'empty' text formfield will have exactly 5 spaces - it cannot have 6 or more characters. Hence, to test whether a text formfield is 'empty', you'd use:
Code:
Field is {IF{REF textFormFieldName}<> "     " "not "}empty
Of course, then you have the problem of what to do if the user has simply pressed the spacebar one or more times and ended up with anything other than 5 spaces (e.g. 100) in the formfield...
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote