Forum Discussion
Thanks Chris for your reply,
can you please share an example about handle the loading data ?
Note that the goal is to fill the fieldTest that is not linked to a specific preperty when the item is locked .
Hi mouad,
You can fill the value of these fields by getting the input element and setting the value. This is a very similar process to what you're already using to enable/disable the fields.
fields.getElementsByTagName("input")[0].value = "Your value";
Additionally, would you be able to clarify more about the exact use case for this field? Depending on what you're trying to do, I may be able to suggest a better alternative than manually handling all of the functionality behind this field.
Chris
- mouad6 years agoCreator I
Hi Chris,
Let me elaborate more,
when i want to create or modify an item already created i need to fill in the fieldTest field manually, but when the item is locked we cannot fill in this field with a text because it will be deactivated, whereas the item must be unlocked so that 'we can fill in the fieldTest.
what I want to do exacly is fill this field when the item is locked then since this field is deactivated in this case I make it activated by disabled = false and readOnly = false for the filled and when the item is unlocked I deactivate this field by disabled = true.