Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Disable the Email field in Salsa forms.
<script type="text/javascript">
// Script to disable the email address in a Salsa form so that a supporter can view it but not change it.
document.addEventListener("DOMContentLoaded", function () {
var e = document.querySelector('input[name="Email"]');
if (e != null) { e.disabled = true; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment