Read only after first SAVE of the form

aahitha2
Mega Expert

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

1 ACCEPTED SOLUTION

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).

View solution in original post

17 REPLIES 17

Gurpreet07
Mega Sage

a write acl for this field. 

 

answer = false; 

if(current.isNewRecord())

answer = true

SaiRaviKiran Ak
Giga Guru

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

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.

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