question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FormGenerator issue

See original GitHub issue

For some reason when rendering the FormGenerator I am having an error:

Uncaught TypeError: Cannot read property 'dropdown_0C509A53-08D6-46C5-9895-C424946A0D69' of undefined

I’ve narrowed it down to an issue with form.jsx - specifically this line:

  _getDefaultValue(item) {
    return this.answerData[item.field_name];
  }

Looks like this.answerData for me is undefined

Temporary fix:

_getDefaultValue(item) {
    if (this.answerData) {
      return this.answerData[item.field_name];
    }
    return '';
  }

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Kihocommented, Oct 25, 2020

Hi @brobey8, You are right, form generator crashes if answer_data was not supplied. Thanks for reporting issue, it should work now.

0reactions
Kihocommented, Oct 26, 2020

Yes, please close.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues · vue-generators/vue-form-generator - GitHub
clipboard: A schema-based form generator component for Vue.js - Issues · vue-generators/vue-form-generator.
Read more >
Vuejs2- Issue in vue-form-generator - Stack Overflow
I am using "vue-form-generator" plugin for loading fields dynamically but I have encountered an error. [Vue warn]: Failed to mount ...
Read more >
Vue Form Generator - Field Array Issue - CodeSandbox
The Vue build version to load with the `import` command. // (runtime-only or standalone) has been set in webpack.base.conf with an alias.
Read more >
Issues for Form Generator Trait | Drupal.org
Issues for Form Generator Trait. Log in or register to create an issue; Advanced search. Search for. Status. - Any -, - Open...
Read more >
AL FORM GENERATOR - Salesforce AppExchange
Issue Box allows users to report issues along with critical session details. The user will add additional details about the error and, once...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found