Hiding field in schema for specific app

I have…

  • [ x] Read the following guideline: Troubleshooting and Support - Squidex. I understand that my support request might get deleted if I do not follow the guideline.
  • [ x] Used code blocks with ``` to format my code examples like JSON or logs properly.

I’m submitting a…

  • Regression (a behavior that stopped working in a new release)
  • Bug report
  • Performance issue
  • [ x] Documentation issue or request

Current behavior

Hi, im trying to hide field in one of my schemas. I have multiple apps and i want to this specific field will be visible only in “my-app-name”.
I manage to hide field using code below but it isn’t visible for “my-app-name”


image

Expected behavior

I want to have visible field for specific app.

Minimal reproduction of the problem

Environment

App Name:

  • Self hosted with docker
  • Self hosted with IIS
  • [x ] Self hosted with other version
  • Cloud version

Version: [VERSION]

Browser:

  • [ x] Chrome (desktop)
  • Chrome (Android)
  • Chrome (iOS)
  • Firefox
  • Safari (desktop)
  • Safari (iOS)
  • IE
  • Edge

Others:

Hello,

Would using ctx.appName work for your scenario? I think appId will be a GUID.

ctx.appName does the work, thanks for helping me out :slight_smile:

2 Likes