Skip to main content
Participating Frequently
April 12, 2024
Question

read only after input in text field.

  • April 12, 2024
  • 2 replies
  • 269 views

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

This topic has been closed for replies.

2 replies

try67
Community Expert
Community Expert
April 12, 2024

Add this to the end of the code:

event.target.readonly = true;

Participating Frequently
April 12, 2024

sorry this is the code

event.target.value = util.printd('hh:MM', new Date());