Is there a native NS way to prevent customers from...
# suitecommerce
s
Is there a native NS way to prevent customers from changing the information on the "Profile Information" section of My Account, making those fields basically read only? (Company Name, Email Address, Phone Number) I have tried different role permissions with a custom Customer Center role without any luck. I currently have the "Update" and "Change Address" button hidden with the SMT, but if the customer changes the fields and hits Enter, it will still update their customer record in NetSuite.
s
There are no permissions associated with this. How good is your JavaScript? You would need some JS that makes those fields uneditable.
Copy code
<script>jQuery('.contact_info input').attr('disabled', true);</script>
This replaces each input with a paragraph version of itself:
Copy code
<script>jQuery('.contact_info input').each(function() {
  jQuery('<p>', {text: this.value}).insertAfter(this);
  jQuery(this).remove();
});</script>
s
Oh that is exactly what I needed - thanks so much! I'll keep working on my JS too lol 😅.