Microsoft Office Forums Field not show result

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-30-2019, 04:59 PM
eduzs eduzs is offline Field not show result Windows 10 Field not show result Office 2010 32bit
Competent Performer
Field not show result
 
Join Date: May 2017
Posts: 145
eduzs is on a distinguished road
Default Field not show result


I have this field in a document:
Code:
{ TITLE { FILLIN "Title:" } }
The problem is that I want it only to set de Title value, not show the text in the document.
Is there a way to do that?
__________________
Backup your original file before doing any modification, test in a throwaway copy of your file.
Reply With Quote
  #2  
Old 05-31-2019, 10:00 AM
Charles Kenyon Charles Kenyon is offline Field not show result Windows 10 Field not show result Office 2016
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 5,864
Charles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to allCharles Kenyon is a name known to all
Default

Alt+F9 to toggle display of field codes.
Look into using a MacroButton Field.
Reply With Quote
  #3  
Old 05-31-2019, 03:42 PM
macropod's Avatar
macropod macropod is offline Field not show result Windows 7 64bit Field not show result Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 19,482
macropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to behold
Default

Quote:
Originally Posted by eduzs View Post
I have this field in a document:
Code:
{ TITLE { FILLIN "Title:" } }
The problem is that I want it only to set de Title value, not show the text in the document.
Is there a way to do that?
You cannot do it that way. Use an ASK field instead.
__________________
Cheers,
Paul Edstein
[MS MVP - Word]
Reply With Quote
  #4  
Old 06-01-2019, 02:55 AM
eduzs eduzs is offline Field not show result Windows 10 Field not show result Office 2010 32bit
Competent Performer
Field not show result
 
Join Date: May 2017
Posts: 145
eduzs is on a distinguished road
Default

Thanks.
I'm using a workaround to use this field in the first occurrence of the name field instead of a single name field.
{ TITLE { Name } }
__________________
Backup your original file before doing any modification, test in a throwaway copy of your file.
Reply With Quote
  #5  
Old 06-01-2019, 04:02 AM
macropod's Avatar
macropod macropod is offline Field not show result Windows 7 64bit Field not show result Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 19,482
macropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to behold
Default

Quote:
Originally Posted by eduzs View Post
I'm using a workaround to use this field in the first occurrence of the name field instead of a single name field.
{ TITLE { Name } }
Makes no sense at all that I can tell.
__________________
Cheers,
Paul Edstein
[MS MVP - Word]
Reply With Quote
  #6  
Old 06-01-2019, 04:07 AM
eduzs eduzs is offline Field not show result Windows 10 Field not show result Office 2010 32bit
Competent Performer
Field not show result
 
Join Date: May 2017
Posts: 145
eduzs is on a distinguished road
Default

Works for me. I can do two things at once: I define the document title and show "Name" in the first occurrence of the Name in the document.
"Name" field is set elsewhere in the doc.
I'm avoiding using the ASK field, because he only asks once and nothing else in the world makes him ask the value again, so I prefer FILLIN.
Can't use VBA in this file, I'm creating DOTX templates.
Thanks
__________________
Backup your original file before doing any modification, test in a throwaway copy of your file.

Last edited by eduzs; 06-01-2019 at 02:29 PM.
Reply With Quote
  #7  
Old 06-01-2019, 03:44 PM
eduzs eduzs is offline Field not show result Windows 10 Field not show result Office 2010 32bit
Competent Performer
Field not show result
 
Join Date: May 2017
Posts: 145
eduzs is on a distinguished road
Default

Hi there! I found another workaround
Is to use the ADDIN field which remains hidden
Code:
{ ADDIN { TITTLE {Name} }
With this code I can set TITLE value without showing anything in the text.
__________________
Backup your original file before doing any modification, test in a throwaway copy of your file.
Reply With Quote
  #8  
Old 06-01-2019, 11:13 PM
macropod's Avatar
macropod macropod is offline Field not show result Windows 7 64bit Field not show result Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 19,482
macropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to behold
Default

So far as I can tell, all you're doing is nesting multiple levels of invalid fields.
The { Name } field on its own returns "Error! Bookmark not defined."
The { Title } field on its own returns "Error! Bookmark not defined."
The { Addin } field on its own returns "Error! Bookmark not defined."
The {Title { Name } } field pair likewise returns "Error! Bookmark not defined."
The { Addin {Title { Name } } } field set likewise returns "Error! Bookmark not defined."
Why? Because Word has no such fields as Name or Title. If your installation supports either of these, it's because you have some kind of Word Addin installed.
__________________
Cheers,
Paul Edstein
[MS MVP - Word]
Reply With Quote
  #9  
Old 06-02-2019, 03:44 AM
eduzs eduzs is offline Field not show result Windows 10 Field not show result Office 2010 32bit
Competent Performer
Field not show result
 
Join Date: May 2017
Posts: 145
eduzs is on a distinguished road
Default

Hi.
{ Name } Is an empty field ( CTRL+F9 ) which I type "Name" inside, doing this, the field become a "REF" field (no need to type REF). It is set elsewhere in the document, like this:
Code:
{ SET Name { FILLIN "What's your name?" } }
Thanks.
__________________
Backup your original file before doing any modification, test in a throwaway copy of your file.

Last edited by eduzs; 06-02-2019 at 04:11 PM.
Reply With Quote
  #10  
Old 06-02-2019, 03:48 PM
macropod's Avatar
macropod macropod is offline Field not show result Windows 7 64bit Field not show result Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 19,482
macropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to beholdmacropod is a splendid one to behold
Default

Quote:
Originally Posted by eduzs View Post
{ Name } Is an empty field ( CTRL+F9 ) which I type "Name" inside, doing this, the field become a "REF" field (no need to type REF). It is returnning a error because "Name" value is set elsewhere in the document (as I said, not shown above), like this:
Code:
{ SET Name { FILLIN "What's your name?" } }
Well, you hadn't previously mentioned the use of a SET field and, in any event, what you're doing there can be done using a simple ASK field - which is what I suggested in post #3. You really should pay attention to such things.
Quote:
Originally Posted by eduzs View Post
TITLE: "The Title field inserts the contents of the Title box from the Summary tab in the Properties dialog box.
In that case, you should be using a DOCPROPERTY field - { Title } field on its own is not valid.
Quote:
Originally Posted by eduzs View Post
ADDIN seems to be very useful, for any fields manipulations/settings you not want to be show in the document.
Not if that content is invalid, which was the whole point of my previous reply.
__________________
Cheers,
Paul Edstein
[MS MVP - Word]
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Field not show result One Cell that controlls spread sheet result button to change simple fomula result RAH Excel Programming 5 03-31-2018 04:52 PM
Field not show result Show result of formula as a value in another cell Steve_D Excel 4 10-12-2014 07:38 PM
result of merge field is incorrect VHV Mail Merge 3 06-16-2014 03:46 PM
Field not show result Form field calculation returning 2x correct result Jschueller Word 1 08-20-2013 01:51 PM
Can I create a formula that will show result in the same cell and let me copy it down CranstC Excel 1 02-11-2012 01:29 AM


All times are GMT -7. The time now is 04:43 PM.


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