Skip to content

How to set the disabled/ readonly option dynamically to the form properties/attributes [Question]  #635

@Kadhiresan-K

Description

@Kadhiresan-K

While rendering the Form, Any input controls created with default behavior should be changed into read-only mode dynamically based on some scenario(s).

scenario 1: If normal user logins, they can only see their email address (email field should not be editable)
scenario 2: If admin logins, they can change the user address (full privileges)

Note: User-based customizations like the normal user login should get the control ready-only/mandatory/hidden and the users like admins should have full privilege on the control(s).

I am using Angular 9
formiojs: "^4.8.0-rc.12"
angular-formio: "^4.6.7"

Any suggestions on how to do it? Any documentation for reference? Will appreciate any help

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions