fill fields templates

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Word Training and help » Fill fields in templates

Fill fields in templates

resolvedResolved · High Priority · Version 2003

Liz has attended:
SharePoint course

Fill fields in templates

Hello
We would like our templates to prompt the user with text, so that they know what the fill field is for, e.g.

Dear [Name/Sirs]

and we have got this set up currently as form fields so that the [Name/Sirs] is grey.

However, when the user clicks on the field, they need to delete the prompt text as well as enter their own. It is possible to accidentally leave some of the prompt characters in.

What we would like to achieve is:
- prompt is visible until user clicks on field, then prompt disappears and user simply enters the new text.

Is this poss?

Hope you can help
Liz

RE: fill fields in templates

Hi Liz

One approach would be to automate the entry fields in a form by adding a specially written Macro so that when a user clicks in a box any default text is removed. The macro would need to be smart enough not to delete text previously entered by the user in the cell if the user happened to click back in the field.

This kind of Macro would need to be specially written.

An alternative method, not using form fields would be to add a macro buttonfield (for this you don't actually need to write a macro)

In your word document move your insertion point where your prompt text will begin. From the insert button go to insert > field and choose macro button. In the display text box type in the prompt you would like your user to see (e.g. Name/Sirs) and click OK.

The text you typed will appear highlighted in grey. Your user can click anywhere on the text and the whole block is selected. This means it's easy for users to type straight over the top without accidentally leaving some prompt text behind.

To be thorough you could also right click on the field text and choose Toggle Field Codes. You will probably find the following:

{MACROBUTTON AcceptAllChangesInDoc Name/Sirs}

rename AcceptAllChangesInDoc to something more neutral because it doesn't actually play a part in this solution (but some text is required) You might want to rename it as prompt

I hope this helps - do let us know if you have any further questions.

Kind regards,

Andrew



RE: fill fields in templates

Hi Andrew

I am currently working on the template doing exactly this and when I protect the document, you cannot click onto the field let alone type text.

Please advise.

Many thanks

 

Training courses

 

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Word tip:

Changing default folder location for opening and saving

If you are always opening documents from and/or saving documents to a specific location that is not My Documents, save time by setting this folder as the default for opening files from and saving files to.

Here's how:
1. Go to Tools - Options.

2. Select the File Locations tab.

3. Under File Types, select Documents.

4. Use the Modify dialogue box that appears on your screen to navigate to the folder you wish to set as your default.

5. Select the folder, click OK, and click OK again.

You have now changed the default folder for opening and saving documents.

View all Word hints and tips


Server loaded in 0.08 secs.