However when I do right click and then "Toggle Field Codes", the "SOME
DEFAULT VALUE" text does not appear. It is just an empty string.
Understood.
At the end of the existing code, try
newField.Result.Text = "SOME DEFAULT VALUE";
(or whatever the correct syntax is for your language)
--
Peter Jamieson
http://tips.pjmsn.me.uk
"Evan Putranto" wrote in message
...
Hi Peter,
I think you got me wrong. The field is correctly displayed as
{FILLIN "SOME TEXT" \d "SOME DEFAULT VALUE"}
However when I do right click and then "Toggle Field Codes", the "SOME
DEFAULT VALUE" text does not appear. It is just an empty string.
While previously when using the standarised way (wdFieldFillIn) "SOME
DEFAULT VALUE" is there (assuming the user click OK on the prompt).
Regards,
Evan