Skip to Content
Menu
This question has been flagged
3 Replies
2397 Views

Hello,

I would like to restrict the from editing after, after its creation.

Any example ?

Thank you.

Avatar
Discard
Best Answer

Hello Zakaria,

 You can add attribute edit="false" in Form view to restrict Editing after Creation.

 For Example : <form edit="false">

 I hope this will help you.

Thanks!

Avatar
Discard
Author

Thank you it work

Best Answer

Hi,

You can make this by the following steps.

1. Add an extra field in the form(Boolean, invisible).

2. Make all fields readonly if the boolean field is True.

3. Then inherit the create function and return the dictionary of fields also with the boolean field with value as True.

Thank you.


Avatar
Discard