I was able to solve my problem with findings after I browsed discussions here. My working code, which doesn't print a default text and colors it gray, but makes the new entry printable, black and uppercase, is now this one :
in custom format script :
// If field is blank, do not print this field
event.target.display = event.value ? display.visible : display.noPrint;
// If field is blank, display this text
if (!event.value) event.value = "Receiver", event.target.textColor = color.gray;
else
event.value = event.value.toUpperCase(), event.target.textColor = color.black;
To make it work properly, I must eliminate all default text from the options tab. However, my new problem is that it can't apply to one of my fields, a dropdown list, because this one can't be without a default text. And I have tried to alter my code to make it work but couldn't come up with a solution.
Any ideas on how to make a similar code for a dropdown list?
Thank you.
---------
I'm replying to myself again...if it should be useful for someone. I found my second solution using an array to represent my dropdown list.
var multipleValues = [];
multipleValues[0]="Prov";
multipleValues[1]="QC";
multipleValues[2]="ON";
multipleValues[3]="NS";
if(event.target.value == multipleValues[0])
event.target.display = display.noPrint, event.target.textColor = color.gray;
else
event.target.display = display.visible, event.target.textColor = color.black;