-
Notifications
You must be signed in to change notification settings - Fork 95
Description
Hi,
I just spent a couple of days getting to know FormFactory. I'm almost there for my class project, but I seem to run into a bug that I can't seem to fix. As a test I copied the code for NestedFormsExample2 and it shows the same problem as what I put together:
- Nested textinputs for non-default selections are rendered as readonly. In NestedFormsExample2 this means that anything besides the Facebook Name input is grey.
- On pageload 'No Contact' is selected but it incorrectly shows the Facebook fields underneath. Selecting another option resets/fixes this. I tried several jquery versions as I saw suggested in another issue here but that didn't change anything.
- Most importantly: the only fillable facebook string returned is null.
I've read every issue but didn't see anything that could help. You can easily test it by creating an empty project and trying it for yourself in Core 2.2. I just pushed my NestedFormsExample2 Test, you can check it here: https://github.com/the-jos/FormFactoryTest/
Another problem: there seems to be something wrong with the resources. I added the lines in startup.cs but the ICollection-buttons don't appear for example. I tried with your template nuget but it doesn't compile, it shows errors. That nuget also dumps a lot of files in the root of my project, I don't think that's intended?
One more question: is nesting of ICollection supported? I saw a discussion (#62) that said the issue with selecting parents was fixed? I get errors on that as well in the console (Uncaught TypeError: Cannot read property 'id' of undefined. FormFactory.js:168)
I was hoping to take a shortcut by using FormFactory but our class deadline is fast approaching. I'm not very experienced so I may be doing something wrong. However I'm pretty certain that something's up.
Last thing: on your main page the InhertitanceExample code section is showing an error loading the code from github.
Thank you for this very interesting project and any insights you can share would be appreciated.
Edit: added my own FormFactory attempt in my Test project under Models/Create and MyForm.cshtml. It's intended as a Surveybuilder.