Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibility for additional attributes #201

Open
dirgayudha opened this issue Dec 17, 2018 · 2 comments
Open

Possibility for additional attributes #201

dirgayudha opened this issue Dec 17, 2018 · 2 comments

Comments

@dirgayudha
Copy link

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
Copy link
Author

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 ?

@nalysa-etienne
Copy link

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 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants