Problem in parent-list after saving Related Item new entry
Posted: 27 Jan 2022
Hello,
we have a problem with a form containing a related item :
In the main form we set a field "readonly(true)" in javascript when the form is loaded.
When saving the form this field has to be set "readonly(false)" with onsubmit-event because otherwise the text in that field is deleted while saving .
When we use the related-item for creating a new entry in the second list this happens:
After saving and closing the reladed -item-form the main form is saved as well automatically, without the onsubmit-event detecting it. As consequence the readonly-field ist not set false and the entry in that field is deleted.
Is there a javascript-event we can use to fix this. It should detect the main form automatically saving when closing the related item and set the readonly-field false.
we have a problem with a form containing a related item :
In the main form we set a field "readonly(true)" in javascript when the form is loaded.
When saving the form this field has to be set "readonly(false)" with onsubmit-event because otherwise the text in that field is deleted while saving .
When we use the related-item for creating a new entry in the second list this happens:
After saving and closing the reladed -item-form the main form is saved as well automatically, without the onsubmit-event detecting it. As consequence the readonly-field ist not set false and the entry in that field is deleted.
Is there a javascript-event we can use to fix this. It should detect the main form automatically saving when closing the related item and set the readonly-field false.