Skip to main content
March 26, 2024
Question

Modify the placeholder of a dateField

  • March 26, 2024
  • 7 replies
  • 0 views

We have a requirement to modify the placeholder of a dateField component. However, we have not been able to modify it as the placeholder parameter of that component is not modifiable.
Does anyone know of a way, another component or plugin that does the functionality of the dateField and the placeholder can be modified?
This alternative must have the behavior similar to the dateField, that is to say, that when clicking on it opens a calendar where the user can choose the date.

Thank you very much.

7 replies

konduruc733182
March 26, 2024

Hello [mention:240f04ca123943e98f2f6337f3b0881a:e9ed411860ed4f2ba0265705b8793d05] 

What would be the place holder? Is it a particular date? Below is something that would help if that is the requirement.

a!localVariables(
  local!date: a!defaultValue(value: ri!date, default: today()),
  a!dateField(
    label: "My Date",
    value: local!date,
    saveInto: local!date
  )
)

March 26, 2024

Hello [mention:2df2892a4df7486f9775b4d2f0e405fd:e9ed411860ed4f2ba0265705b8793d05] .

First of all, thank you very much for your interest.
We want to put a customizable text in the placeholder of the dateField, specifically "to" instead of the default "mm/dd/yyyy".

konduruc733182
March 26, 2024

As Mike has mentioned, the defaulted placeholder cannot be modified. 

mikes0011
Brainy
March 26, 2024

Date and Date/Time fields do not have modifiable placeholders.  Your one recourse here if you feel like you have a valid use case would be to open a support ticket with Appian (just be aware that even if they add it to their backlog, it'll likely be a significant waiting period before it might actually be implemented).

March 26, 2024

Thank you very much for your response.

Would it be possible, somehow, to simulate with a textbox and a calendar icon the behavior of dateField ( that when clicked, a calendar opens)?

mikes0011
Brainy
March 26, 2024
a textbox and a calendar icon

Perhaps - FYI, it would require a lot of manual work and a lot of context-sensitive parsing of anything the user hand-enters.