Access Issue with ESQ
I have a task where based on the combination of two fields I have to populate several other fields from a different section in the frontend before saving the record.
Please see the below image where all the fields inside the red boundary are auto-populated.
Below is the code
Code is working fine, but the problem is it's not working if the user is other than Supervisor.
I believe, since other users have no access of the section from where values are being fetched this is the reason for this issue.
Please help me to resolve this issue.
Is there any alternative of ESQ like Select or Update class I can use in Edit page schema in order to achive this?