Thank you. Sorry, but I don't see a way to use Conditional Logic to check against a user attribute. I'm going to simplify my question. In a form, I would like to show the field only if the user is admin or editor.
Apparently conditional logic in the Builder can only check fields in the field group - I see no way to match against a user role/capability. If I create the field group using code, I have more freedom, but even then, https://docs.metabox.io/extensions/meta-box-conditional-logic/#with-code doesn't show a way to compare with User role or capability.
So, in short: is there a way to check user role or capability, either in Conditional Logic or when registering a meta box with code? Alternatively, is there a filter I can use to decide whether or not to show a specific field?
Thank you for your patience. I'm reading and testing as fast as I can to learn. While I wait for your answer I'll investigate template parts and having multiple meta boxes in a form.