Is there a way to make a field impossible to edit? Possible with the addition of some javascript?
Solved
How to make a field uneditable?
Best answer by Rob
Hi @Andy2 you can disable a field using the following javascript (remember to wrap the code in script tags):
document.getElementById('FIELD ID HERE').disabled = true;
Could you let me know a bit more about your use-case for disabling a field? The above code will make it impossible to type in or change a field. If you’re looking to make sure a certain value in a form field stays intact a hidden field might be a more suitable option for you.
Reply
Rich Text Editor, editor1
Editor toolbars
Press ALT 0 for help
Log in to the Unbounce Community
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.