How to get rid of the (Bytes -234kb) label when an object field is displayed in edit or create
G
Gavin BEANGSTROM
started a topic
about 21 hours ago
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);
Gavin BEANGSTROM
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>