FormEditor icon indicating copy to clipboard operation
FormEditor copied to clipboard

Possibility for additional attributes

Open dirgayudha opened this issue 6 years ago • 2 comments

Hi,

Im wondering, i want to customize and create the form structure programatically. I investigate that, the form structure for a content is saved in cmsPropertyData table. I tried to edit the JSON to add new field directly in the database. It works! but im thinking to do this programatically (creating the json manually and update the db).

Is there any hint for this ?

And further more, I see that the structure is like this : image

I wish to add new custom attribute here and umbraco backend user can edit this custom field (maybe visibility attribute).

dirgayudha avatar Dec 17 '18 09:12 dirgayudha

I also found this documentation : https://github.com/kjac/FormEditor/blob/2ed888aa20561f30e2c57a7744b9dd3a335b4112/Docs/initialize.md

I found that the FormModel and their attributes are already defined in its designated meta. Is there any way i can edit the meta to add custom attribute ?

dirgayudha avatar Dec 21 '18 09:12 dirgayudha

Hi Kjac, so far, Form Editor propose to assign an alias in the Row and cell definition ( ie: in FormeEditor Datatype definition) Therefore, all rows and cells of the same type in a form will have the same alias. We wish to be able to assign values to row and cell aliases at From content creation stage. this feature will allow us to hide or show part of the files according to complex rules.

We already found what to change in your code to add a alias2 in row and cell in datatype. What files shall we investigate to be able to assign an alias value at Form content creation stage ? Fields attributes are editable at form content creation stage. I imagine something similar to assign values to some cells and rows attributes in form content creation screen.

Thanks for your feedback, and thanks for this great module !

nalysa-etienne avatar Jan 15 '19 09:01 nalysa-etienne