Is it possible to input a default 'text' to a Date Field. which will change to a date as soon as the person attempts something
-
Where you want to show this placeholder? in VF?– Pragati JainOct 15, 2018 at 10:03
-
fields can take default values right? so in a date field area i want a text, until it is changed– Niveth KumarOct 15, 2018 at 10:44
-
1Date field can't take text as default value. But you can display place holder in visualforce page.– Pragati JainOct 15, 2018 at 10:51
1 Answer
You can't mix return types of a field. But, you could create a formula field, which returns either a text date, or a text string.
IF((ISBLANK(SomeDate__c)), 'No Attempt', TEXT(SomeDate__c))