Skip to main content
Nintex Community Menu Bar
Knowledge Base

Troubleshooting: Custom Field Renderer Only Works for Admins

  • June 3, 2024
  • 0 replies
  • 6 views
  • Translate

MillaZ
Nintex Employee
Forum|alt.badge.img+21

Topic
End users looking at a Field editor were not able to see a custom field renderer 2 in action, even though Administrators could see it working as expected.

Resolution
Once we discovered that multiple Field Editors were being conditionally rendered, each for specified profiles, we made sure each version of the Field Editor was set up to utilize the custom Field Renderer. 
Use cases affected: Skuid on Salesforce / Skuid Platform.

Problem Details
A client had applied a custom Field Renderer 2 to a field, but only administrators could see the results of the custom renderer. Non-admins still saw the Feld rendered with standard rendering.

Resolution Process
When viewing the page in runtime, we first looked for any JavaScript errors or warnings, which are often great clues when working with custom Field Render snippets. Looking at the browser’s developer console

  1. We could see there were no errors for affected or unaffected users.

We wondered then if the render snippets were actually running. Adding a console.log();

  1. Command to the custom render code allowed us to confirm that, for affected users, the render code was not being executed at all.
  2. We also confirmed that other custom render snippets were working for affected users, which allowed us to focus on details directly related to the misbehaving custom renderer.
  3. The underlying question to answer became, “Why does the custom renderer run for some users, but not others?” We asked the client this, and found that the problem wasn’t in the custom renderer at all.

Outcome
This was happening because the Skuid page was using multiple versions of the Field Editor, but only one was set up to use the custom renderer. Display logic was being used to show only one version of the component at a time, depending on the running user’s profile. Since the custom renderer was only applied to the administrator’s Field Editor, non-admins never saw the custom render snippet’s handiwork.

To fix this, we reviewed all versions of the component and applied the custom Field Renderer to several that hadn’t yet been set up to use it.

Additional Information
We suspected there might be a user or profile setting that non-admins didn't have, which could interfere with the custom code, or the field it uses. The Salesforce org's object, field, or system permissions, could have been relevant to the issue, but there isn't a user or profile setting in Salesforce that would prevent some users from accessing or running the inline custom render JavaScript.

It was very helpful to walk through the Skuid page with someone who was familiar with how it was built, and identify aspects of the page that would create different experiences for different users like display logic on components, or branching logic in action sequences

Understanding the idiosyncrasies of the page was key, and saved lots of time hunting for a Salesforce permission that didn’t exist.

Get help with an issue

Did this topic help you find an answer to your question?

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings