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

Form does not show all the fields when data come from schema injection #388

Open
gsambrotta opened this issue Sep 20, 2023 · 0 comments
Open
Labels
bug Something isn't working

Comments

@gsambrotta
Copy link
Collaborator

Problem

When a form block is used to display various fields coming from an injected schema (not static data), the form block display only the first field. To display all the fields, the form block needs to be updated (i.e. by clicking the "Update" button)
This bug occur when a schema is saved to a context and then used in the form with a context reference.
It might be a problem with schema injection or with the context. Further investigation is needed.

Example

Here is an example where schema/context injection not working properly: https://app.kendra.io/form/formTestBug

Error

An error is logged in the flow:

main.df743c2a398a6134.js:1 TypeError: i.setControl is not a function
    at main.df743c2a398a6134.js:1:658307
    at ph (main.df743c2a398a6134.js:1:658837)
    at Lu (main.df743c2a398a6134.js:1:658282)
    at nx.addFormControl (main.df743c2a398a6134.js:1:687996)
    at nx.onPopulate (main.df743c2a398a6134.js:1:687464)
    at main.df743c2a398a6134.js:1:656002
    at Array.forEach (<anonymous>)
    at Ad._buildForm (main.df743c2a398a6134.js:1:655975)
    at main.df743c2a398a6134.js:1:656060
    at Array.forEach (<anonymous>)

These lines of code might be relevant:

@gsambrotta gsambrotta added the bug Something isn't working label Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant