Ive discovered a way of having placeholder text in a standardtext form field using the below script.
if (!event.value) event.value = "Message text goes here.";
However when putting in a date picker box, it is not very clear what a user should do. When you click into the field the cursor flashes as if you should text, the method of picking from the claendar is not clear and the arrow is not overly obvious.
Is there a way to either make it all a bit clearer (I know that's subjective) or to add placeholder text to the date field ?
Text fields formatted with a format other than "None" have additional code that validates that the entered data meets the format of the specified format and is valid value for that type of format. To do what you want you may need to write additional scripts for format and validation that allow for the entry of text for the "None" format option. PDF forms allows for the form "tool tip" which can be additional information about the field. This option is available on the "General" tab.
It might be possible to "stack" fields and manipulate the visibility of the fields or the fill color to hide a field below the top field to achieve this effect.
I've discovered the following solution: - Put a text field above your date field.
- Put in the text field the placeholder text that you want.
- Open the properties of your date field, go to "Actions", select "Show/hide a field" and make it so that the text field with the placeholder text is hidden when the date field is clicked.
- Applying the above setting will automatically make the text field with the placeholder text hidden. To correct this, go to the properties of the text field with the placeholder text and under "General" select "Visible".