- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2018 10:35 PM
Hi All,
I have one editable field(Company - reference field) in the form, while filling the new form it should deplay as editable and after saving the form 1st that ( company field) should become read only.
@ How can i achieve this please??
Thanks,
Aahitha
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2018 02:52 AM
ok yes,
now you need to do some changes in your ACL
you doesn't need to write answer=false in script section,please remove this,
and also uncheck admin override(if you want).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2018 10:38 PM
a write acl for this field.
answer = false;
if(current.isNewRecord())
answer = true

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2018 11:13 PM
Hi,
If it is a mandatory field then you can create a UI Policy as :
If Company is not empty
UI Action Condition: Make Read Only True
Thanks,
Ravi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2018 01:08 AM
You can also try adding condition like below:
If one of the mandatory(Any mandatory field on form) field is not empty then make company read only true.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2018 02:26 AM
Hi Kiran,
I f i will continue with UI policy as you said,
Conditions : company is not empty then company read only............>> company filed is becoming read only before saving the form.........but My requirement is after submiting/saving this form then after only company field should become read only not before saving/submiting
Thanks,
Aahitha