2
read only after input in text field.
Community Beginner
,
/t5/acrobat-discussions/read-only-after-input-in-text-field/td-p/14551133
Apr 12, 2024
Apr 12, 2024
Copy link to clipboard
Copied
I have text fields set to input the time when it is clicked.
Is there a way to make the text field read only after the time is in.
event.value = util.printd('hh:MM', new Date());
current code to insert time when text field is clicked
Thanks
R
TOPICS
Create PDFs
,
Edit and convert PDFs
,
How to
,
JavaScript
,
Modern Acrobat
,
PDF
,
PDF forms
,
Standards and accessibility
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
GravityratRob
AUTHOR
Community Beginner
,
/t5/acrobat-discussions/read-only-after-input-in-text-field/m-p/14551138#M458989
Apr 12, 2024
Apr 12, 2024
Copy link to clipboard
Copied
sorry this is the code
event.target.value = util.printd('hh:MM', new Date());
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
LATEST
/t5/acrobat-discussions/read-only-after-input-in-text-field/m-p/14551142#M458992
Apr 12, 2024
Apr 12, 2024
Copy link to clipboard
Copied
Add this to the end of the code:
event.target.readonly = true;
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

