1

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 Jain Oct 15 '18 at 10:03
  • fields can take default values right? so in a date field area i want a text, until it is changed – Niveth Kumar Oct 15 '18 at 10:44
  • 1
    Date field can't take text as default value. But you can display place holder in visualforce page. – Pragati Jain Oct 15 '18 at 10:51
1

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))

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.