Form Meta Editing

Hello, I am looking for a way to allow editing of a FormMeta in either EDIT or ADD mode.
My purpose is for the user to be able to set the name of the PersistenceRecord when in ADD mode, but not in EDIT mode of the forms.

In my class extending PersistenceRecord, I have static attributes that are set to control the visibility of a field in the form, but these attributes are active for all modes.

Do you know of a method that can determine the form mode or another method that can achieve this goal?
Thank you.

I've got it.

1 Like

Great! How did you do it?

In the class extending PersistenceRecord, I have created a method with the mode as input parameters. Before I instantiate editing component, I call this method. This method checks which mode it is and enables or disables the FormMeta accordingly.