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.
Discussion posts and replies are publicly visible
Hello Sandra
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 ) )
Hello Konduru Chaitanya .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".
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).
As Mike has mentioned, the defaulted placeholder cannot be modified.
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)?
Sandra said: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.
I guess its doable. but would require a lot of code and time as Mike has mentioned. Is it worth the struggle?If yes, a brief description on how it can be doneInitial Screen with a a!sideBySideLayout() having a text field that is disabled and no label in the item and a button widget with only icon in one item which would save true or false which will be used for show when condition.
You need to create a selectable calendar component/interface which you would call iin a columnsLayout() which will be on a showWhen condition using the local!variable that contains the save done by the button widget earlier.
One column would contain the calendar and other column would contain a buttonArrayLayout(), the same button widget that is used above.
Coming up with interactive calendar interface would be a the most time consuming and difficult part.