This does not work at all! Data is submitted and input field is editable after submission. I have checked in the inspector of google chrome for the Id of the targeted field. I do not know what I am doing wrong!
I have spent hours trying to figure it out. When I look at HTML, I do not see any thing that makes it impossible to change these input fields. My be the fact that input field is required? That's why I thought may be I need to make it readonly after a certain time (ms) from submission.
I have tried to set a delay between submission and the switch to "ReadOnly" via settimeout(), but it does not work either: