- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2022 09:55 PM
Friends ,
I have created 4 fields when its submitted and closed still user can edit those field .
what is the approch to make it non editable once the form moved to close state ,
please help me with it
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2022 10:01 PM
Hi @pramn
As it is only for four fields you can use UI policy and give correct conditions.
If we want to make all the fields read only you can use below logic:
var fields=g_form.getEditableFields(); //will return editable filed names in comma separated.
for(var i=0;i<fields.length;i++)
{
g_form.setReadOnly(fields[i],true);
}
Hope it helps..
Murthy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2022 10:01 PM
Hi @pramn
As it is only for four fields you can use UI policy and give correct conditions.
If we want to make all the fields read only you can use below logic:
var fields=g_form.getEditableFields(); //will return editable filed names in comma separated.
for(var i=0;i<fields.length;i++)
{
g_form.setReadOnly(fields[i],true);
}
Hope it helps..
Murthy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2022 10:21 PM
Hello @pramn ,
You can create write ACL for each field and add condition as "State is not closed". It will prevent users from editing those fields.
Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2022 10:39 PM
Hi @pramn,
It can be easily achievable using UI policy.
Condition as -
State IS Closed
UI policy actions -
Field1 --> read-only --> True
Field2 --> read-only --> True
Field3 --> read-only --> True
Field4 --> read-only --> True
Thanks,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2022 10:42 PM
Hello,
The best approach is to create a write ACL on those fields as below. Replace active with your field names and change the table name as well if you are using some other table.
Once done no user apart from admin will be able to edit those 4 fields nether from Form view or List view.
Please mark my answer as correct based on Impact