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

i want to show image in form preview . but error coming when i am Rendering the form #718

Closed
phpdevelopernk-git opened this issue Feb 23, 2018 · 3 comments
Assignees
Labels

Comments

@phpdevelopernk-git
Copy link

phpdevelopernk-git commented Feb 23, 2018

Description:

I am trying to create a custom control where only a image will come OnRender in form preview

Environment Details:

  • formBuilder Version:
  • Browser: Firefox
  • OS: Ubuntu

Expected Behavior

It should come track image as a form field when i am Rendering the form data with json in preview mode

Actual Behavior

when i am tryin to render form with preview button then Error coming in console.

Error: Invalid control type. (Type: track, Subtype: undefined). Please ensure you have registered it, and imported it correctly.

Please look at my script:

https://gist.github.com/phpdevelopernk-git/18841590ac1b0e95bdd4effc32b8abdb

Steps to Reproduce

Screenshot - (optional)

@tienuit
Copy link

tienuit commented Sep 11, 2018

hi @phpdevelopernk-git
Did you solve your issue? I also got this issue, and waiting for a solution

@phpdevelopernk-git
Copy link
Author

phpdevelopernk-git commented Sep 14, 2018 via email

@kevinchappell kevinchappell self-assigned this Nov 2, 2018
@kevinchappell
Copy link
Owner

Excellent find! I'm releasing a fix now.

Also I've updated your gist a little to avoid using jquery to lookup the field again. https://gist.github.com/kevinchappell/c5a05ea77e9e8b6b3303dd28521f7d53

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

No branches or pull requests

3 participants