readonly fields

dev_K
Tera Contributor

Hi,

 

 

I ma trying to make 'model' field editable however it does not work. How can I check where is the issue?

 

dev_K_0-1716291197802.png

 

 

I created this onLoad client script:

 

dev_K_1-1716291250752.png

 

 

but it does not work.

 

 

thanks!

6 REPLIES 6

Mark Manders
Mega Patron

Because your client script won't override the functionality that's on the model field, making it read only.

Check the dictionary, the dictionary overrides, the acl's, the ui policies, data policies and other client scripts that may make this field read only. 
You need to remove what is making it read only, not adding something (client side) to override that, because depending on what it is, this won't work.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Robbie
Kilo Patron
Kilo Patron

Hi @dev_K,

 

The Asset 'Display Name' by design and Out Of Box is read-only.  It's actually a concatenation of the 'Asset Tag' field and 'Model' fields and is generally only set on creation due to the nature of Asset (and CI) management.

 

Why do you want to make this read-only? Is it for a one-off change or update? 

Tip - If you want to Asset 'Display Name' you can either update the Asset Tag field or update the related Model record and update the Model 'Name' there. No configuration or code changes are needed to update the Display Name ; )

 

To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Kudos.

 

Thanks, Robbie