Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updateUnionField() does not support visibility: hidden for reverse fields. #34

Open
JoshuaS98 opened this issue May 17, 2023 · 0 comments

Comments

@JoshuaS98
Copy link

JoshuaS98 commented May 17, 2023

client.updateUnionField({
    apiId: 'target',
    displayName: 'Placement target',
    modelApiId: 'DynamicRow',
    reverseField: {
      modelApiIds: [
        <VARIOUS MODELS>,
      ],
      // Here should be an option for visibility, as is done in client.createUnionField. 
      // This would set the visibility for the reverse fields.
    },
    visibility: VisibilityTypes.ReadWrite, // This sets the visibitlity for the DynamicRow model.
  })

Right now I am trying to update my union field, adding visibility: hidden for the reverse fields. This is not possible with the current management SDK. Although it is supported in createUnionField(), I can't delete my model because I would lose all my entries.

Also displayName should be supported for reverseField in updateUnionField().

@JoshuaS98 JoshuaS98 changed the title client.updateUnionField does not support visibility:hidden for reverse fields models. updateUnionField() does not support visibility:hidden for reverse fields models. May 17, 2023
@JoshuaS98 JoshuaS98 changed the title updateUnionField() does not support visibility:hidden for reverse fields models. updateUnionField() does not support visibility: hidden for reverse fields models. May 17, 2023
@JoshuaS98 JoshuaS98 changed the title updateUnionField() does not support visibility: hidden for reverse fields models. updateUnionField() does not support visibility: hidden for reverse fields. May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant