Unable to make field read only

Alex2506
Tera Expert

Hi, 

 

I'm trying to make planned start date ('start_date') read only on a project task ('pm_project_task'). I have a UI policy to do this for other fields, all working fine apart from start date. Tried via script etc nothing seems to work.

 

The only way I can do this is via the write ACL on that field. I add a condition to it and this makes it read only. I want to try and avoid this if I can.

 

What's weird is that, when I make that ACL inactive, the UI policy still doesn't apply to that field so something else must be happening here. Can anyone help? Seems simple but can't quite work it out.

 

Thanks! 

7 REPLIES 7

Juhi Poddar
Kilo Patron

Hello @Alex2506 

  • Is the field marked as mandatory? Mandatory fields cannot be made read-only, as this would prevent users from submitting the form.
  • Next, check if any existing UI policies or client scripts are modifying the field properties and potentially overriding your configuration.

Hope this helps!

 

"If you found my answer helpful, please like and mark it as an "accepted solution". It helps future readers to locate the solution easily and supports the community!"

 

Thank You
Juhi Poddar

AndersBGS
Tera Patron
Tera Patron

Hi @Alex2506 

 

as @Juhi Poddar have stated correctly, check other UI policies or client scripts that contradicts what you’re trying to achieve. Also, have you made some other logic to the field?

 

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/

Alex2506
Tera Expert

Hi @Juhi Poddar and @AndersBGS

 

Made all client scripts and UI Policies that reference that field inactive and still unable to set via my UI Policy so must be something else that I'm missing. 

Rakesh18081
Tera Expert

Try to create a dictionary override and make the field read only.

 

Open the Dictionary Entry for start_date and check if it has mandatory or calculated attributes that prevent UI policy enforcement.
If it's a calculated field, UI policies may not work as expected

 

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Rakesh Agarwal