Expand my Community achievements bar.

SOLVED

Making whole input form read only

Avatar

Employee

Hi, i wanted to know if there is any way to make a whole input form read-only, without manually updating each input's attributes one by one?

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @HariharanB ,

You can add readOnlyExpr="true" in initial <form> tag. (Disconnect & reconnect)

 

Example,

<form _cs="Customer (abc)" created="2023-03-07 10:53:24.776Z"

 readOnlyExpr="true" .... lastModified="2023-03-07 10:53:24.776Z"
name="customer" namespace="name" xtkschema="xtk:form">

 

Incase if it not reflected in input form after disconnect-reconnect, clear local cache, disconnect-reconnect again.

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

Hi @HariharanB ,

You can add readOnlyExpr="true" in initial <form> tag. (Disconnect & reconnect)

 

Example,

<form _cs="Customer (abc)" created="2023-03-07 10:53:24.776Z"

 readOnlyExpr="true" .... lastModified="2023-03-07 10:53:24.776Z"
name="customer" namespace="name" xtkschema="xtk:form">

 

Incase if it not reflected in input form after disconnect-reconnect, clear local cache, disconnect-reconnect again.

Avatar

Level 1

Is there any way I can set the form read only, based on value of a field? Say, if my drop down field of the form is A, then make the entire form read only.