g_form.isEditableField() returns false for journal/journal_input fields on existing record forms.
Steps to Reproduce
Using the Browser Console:
Navigate to Incident > Create New.
Confirm that the Additional Comments field is on the form.
Open the browser console, set the frame to gsft_main, and enter the following command:
Note that it correctly returns true.
Save the record, (save/submit and return to the saved record's form).
Confirm that the browser console's frame is set to gsft_main again and run the command again.
Note that it incorrectly returns false.
Create a new test case.
For more information, see the product documentation topic Test cases.
Add test steps.
- Impersonate any ITIL User.
- Open an existing record, select any record [ state = Requested and table = sysapproval_approver ].
- Set the form View to "ess" for Self-Service view where Additional Comments appears.
- Set Field Values and choose "Comments" , value = Reject.
Save the test case.
Run this test case.
Note that the result is a FAILURE test result with message "FAILURE: Unable to set field 'comments' to value '"Comments"'. Field 'comments' is not editable. Note that this is also applicable to JOURNAL_INPUT type fields on sysapproval_approver as well as the Incident table.
Run the following script in an onLoad client script:
Related Problem: PRB752835