Microsoft Office Forums

Go Back   Microsoft Office Forums > Microsoft Word > Word

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 06-14-2018, 12:14 PM
nicoledey nicoledey is offline Windows 10 Office 2016
Novice
 
Join Date: Jun 2018
Posts: 2
nicoledey is on a distinguished road
Exclamation Content Controls: Whole field selecting upon clicking vs only placing cursor inside the field

Hi I am creating content control fields using the document properties.



Running into a problem with the field upon clicking on it, it does not select the whole field. So you have to delete the placeholder text before entering your content. Instead it just places the cursor in the field without removing the placeholder text.

I tried to delete it and redo it, using the same document property but now the information is now stored and everytime insert it, it reacts the same.

Clicking on the field select the whole field, created using Category (desired result)


Clicking on the field places the cursor in the field, created using Publish date, (undesired result) this content control is recycling what was there previously, in other templates I have created I was able to delete and reinsert and it gave me a fresh control
Reply With Quote
  #2  
Old 06-14-2018, 08:08 PM
Charles Kenyon Charles Kenyon is offline Windows 10 Office 2013
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 5,201
Charles Kenyon is a glorious beacon of lightCharles Kenyon is a glorious beacon of lightCharles Kenyon is a glorious beacon of lightCharles Kenyon is a glorious beacon of lightCharles Kenyon is a glorious beacon of lightCharles Kenyon is a glorious beacon of light
Default

Quote:
Originally Posted by nicoledey View Post
Hi I am creating content control fields using the document properties.

Running into a problem with the field upon clicking on it, it does not select the whole field. So you have to delete the placeholder text before entering your content. Instead it just places the cursor in the field without removing the placeholder text.

When I want to change place holder text, I do so in design mode and start typing in the middle. I type what I want, then delete the unwanted default text.
That is...


[Click here to answer] becomes...
[Click Client Namehere to answer] becomes...
[Client Name]


Quote:

I tried to delete it and redo it, using the same document property but now the information is now stored and everytime insert it, it reacts the same.

Clicking on the field select the whole field, created using Category (desired result)


Clicking on the field places the cursor in the field, created using Publish date, (undesired result) this content control is recycling what was there previously, in other templates I have created I was able to delete and reinsert and it gave me a fresh control

When you add information to a document property content control of a document (like Publish Date) what you add is stored not just in the content control, but is mapped to that XML part. When you delete the content control, the information is still in the XML part and in the document property. When you reinsert the content control, it references the part and supplies your information. See Repeating Data Using Document Properties Content Controls and Other Mapped Content Controls


This will not happen with an unmapped content control.
Reply With Quote
  #3  
Old 06-15-2018, 09:04 AM
nicoledey nicoledey is offline Windows 10 Office 2016
Novice
 
Join Date: Jun 2018
Posts: 2
nicoledey is on a distinguished road
Default content controls

Thank you for your reply,

When I edit the place holder text it is always while in design mode.

Thank you for the link you provided, I have been using this as a reference before sending this query.

The repeating information because it is locked into xml is there anyway to reset or erase it?

I am still wondering how to make it so that when you click on the field it selects all of the placeholder text, rather than just place my cursor into the placeholder text.

Thanks!
Reply With Quote
  #4  
Old 06-15-2018, 06:12 PM
Guessed's Avatar
Guessed Guessed is offline Windows 10 Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 809
Guessed is on a distinguished road
Default

In my experience, IF the content control is showing placeholder text, your cursor would select the entire CC. However if the CC is containing text that happens to correspond with the 'placeholder text' then you would get the result you are seeing.

Select the content of the CC and press Delete. Does it still behave the same way?
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #5  
Old 06-16-2018, 12:37 AM
gmayor's Avatar
gmayor gmayor is offline Windows 10 Office 2016
Expert
 
Join Date: Aug 2014
Posts: 2,480
gmayor is a jewel in the roughgmayor is a jewel in the roughgmayor is a jewel in the roughgmayor is a jewel in the rough
Default

Frankly, for a facility as useful as content controls, Microsoft's implementation of the means of entering them is weak at best.

To overcome the limitations I produced https://www.gmayor.com/insert_content_control_addin.htm which makes the insertion of the types of controls most used (and mapped versions of those controls) a breeze and it retains preferences. You can enter your own placeholder text (or type the placeholder text in the document and select it before running the process and it will use that text as placeholder) and if you click in such a field, whatever you have used as placeholder text, the whole of that placeholder text is selected.
__________________
Graham Mayor - MS MVP (Word)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
Reply

Tags
content controls, macros in word, word 2016

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Have Text Entered in Content Control / PreDefined Field Populate Field in Footer bzowk Word 1 04-14-2016 11:50 AM
field controls for automation via excel ajetrumpet Word 0 07-13-2013 09:48 PM
Highlight and put bookmark on the closest field to the cursor b0x4it Word VBA 11 05-19-2011 11:15 PM
Selecting merge field based on whether or not text is present amym Mail Merge 1 12-07-2010 05:14 AM
How to use the content of a combobox for {IF} field? Melaanie Word 0 06-14-2010 02:00 AM


All times are GMT -7. The time now is 07:27 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
MSOfficeForums.com is not affiliated with Microsoft