Developer forum

Forum » Dynamicweb 10 » Update read only custom fields from API

Update read only custom fields from API

Martin Moen
Reply

We noticed a "thing" wich we wonder if is intentional or not.

Lets say you have a global custom field, and set the "Read only" property to "True" so that it should not be editable through the admin.
When we tried to update the same field on a product through the API endpoint "ProductSave" we notice that the value on the read only field is not saved.
If we set it to "False" it updated just fine.

Is it a bug or is a it a feature?

We would love to be able to update the field through API, but still make sure that no one is able to edit the value through admin.
Guess that is not possible the way things are set up at the moment?


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Martin

The management API is  doing exactly the same as the UI - so they cannot differ. You would have to do something else if you want different behavior.

Votes for this answer: 1

 

You must be logged in to post in the forum