Description
Seeing the following Error Messages when loading a Form of a Record inside a Scoped Application:
Display true not set on field field_name: cross-scope access denied.
ReadOnly true not set on field field_name: cross-scope access denied.
Steps to Reproduce
- Create a Scoped Application
2. Create a Table that Extends Task inside the Scoped Application
3. Create a Record Producer to create Records on the Table from Step 2
4. Create the Variable Editor Formatter where Table = Table from Step 2 and Formatter = com_glideapp_questionset_default_question_editor
5. Add the Variable Editor to the Form of the Table from Step 2
6. Create a Field on the Step 2 Table. But do not add the Field to the Form View
7. Create an onLoad Client Script that Hides the Field as follows: g_form.setDisplay('<field from #6>',false);
8. Create a Record from the Record Producer. Notice the Console Log Error "TypeError: Cannot read property 'getScope' of undefined"
9. Enable "Compact the user interface" and reload the record. Notice the below error appears in red on the bottom of the page.
Display false not set on field : cross-scope access denied.
Workaround
You can add the Field to the Form View to resolve the issue.
If you do not want to display the Field on the Form then please use the following Workaround:
- Create a Form Section on the Form
- Add the Fields to the Form Section
- Create an onLoad Client Script to hide the Form Section with the following Script:
g_form.setSectionDisplay("section_name", false);
Related Problem: PRB1355020