Start a new topic

How to get rid of the (Bytes -234kb) label when an object field is displayed in edit or create

If you use a user defined form field of  component type object that you are including HTML on you get an annoying (String - 1.4 Kb) label appearing when you edit the form.


This can be removed by adding the following script to your html.


<script>


 function changeAllParentElements(className, newText) {

  const parentDoc= window.parent.document;

  const elements = parentDoc.querySelectorAll("." + className);

 elements.forEach(element => { element.textContent = newText;});

 }

 changeAllParentElements("af-object--start-adornment", "")


</script>




Hello Gavin,


Did you try taking a look at this article?

https://semarchysupport.freshdesk.com/a/forums/topics/43000531837

Login to post a comment