Is it possible to display forms components depending on the users role e.g. full access for admin role user, read-only for employee role user?
Hello!
There are currently no form modelling features that allow you to make form content dependent on roles.
The A12 client’s application model, however, allows you to (optionally) specify the necessary permissions for the user to be able to see and use a menu entry.
With that you should be able to show different menu items to admins or employees that could ultimately load differently configured forms (i.e. different form models for admins vs employees) for the same data.
If you use the same labels for those menu items, it would look exactly the same although the inner workings would be different since different forms would be loaded.
A small addition:
If you want to make the whole form readonly, you can compute a custom readonly state:
https://docs.geta12.com/docs/?release=2023.06#product:engines,artifact:formengine-documentation-bundle,content:asciidoc,scene:gxfxQs,anchor:_enablement_state
For individual elements, you could decorate the widget(s): GetA12 Login