All Collections
API / Customization / Advanced
Advanced CSS, JavaScript and HTML
Add Additional Security Measures to Ensure People Don't Change their Name
Add Additional Security Measures to Ensure People Don't Change their Name

Finding that people are cheating the system by changing their name on their membership profile? Add this code to ....

Updated over a week ago

....Finding that people are cheating the system by changing their name on their membership profile? Add this code to prevent them from editing it.

You can disable the ability for someone to edit their first name or last name when editing their profile. We'll show you the easy way, knowing that we have the ability to setup a custom account/edit page.

If you'd like to prevent the first name and last name fields from being editable when they edit their profile, simply add this code to the bottom of your member portal layout.

<script type="text/javascript">
if (curPath == 'admin_customer_create.aspx') {
โ€‹

$("#content_first_name").attr("disabled", "disabled");
$("#content_last_name").attr("disabled", "disabled");
}
</script>

Did this answer your question?