'Preview this record' button does not workIssue When viewing a record that has a reference to another table, the 'Preview this record' button does not load the record preview for that reference. Instead, the form seems to break and requires a reload of the page or form to regain functionality. An error can be seen in the console.CauseOne possible cause are UI macros that are evaluating to invalid javascript when they are being executed, resulting in an error in the developer console. For example: ResolutionEnsure that the glide.ui.escape_all_script system property is set to true per KB article: The "Preview This Record" (i) icon keeps loading for the request item field (RITM) If the glide.ui.escape_all_script system property is already set to true: Open the developer console and click on the 'Preview this record' button to trigger the error.When the error appears in the console, click on the file and line number link to the right of the error, i.e.:The code that appears is what the UI macro evaluated to based on the macro's configuration. You can use parts of this code to search System UI > UI Macros. For example:Disable the returned macro(s), then click the 'Preview this record' button on a record that was previously broken to verify the issue is resolved.Alternatively, the code in the returned macro(s) can be updated to handle the scenario that is causing the error in the evaluated javascript.