Expand my Community achievements bar.

Make field "readonly" after submit to database

Avatar

Former Community Member
Hi,



I am trying to make a field readOnly after the data has been entered. I found this java script by searching the forum. It works fine with the alert, but it does not make the field readOnly. Can someone enlighten with a solution.



Thanks



var returnValue = app.alert("Is this correct?",2,2);



if (returnValue == 4) //yes is 4, no is 3, cancel is 2, ok is 1 i think



field1.required = true;

else

field1.access = "readOnly";
0 Replies