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.

Bug: I can not create custom controls.

See original GitHub issue

http://formbuilder.readthedocs.io/en/latest/formBuilder/options/fields/ This is the error that appears on the console.

Error: Error while registering custom field: [object Object]. Unable to find a related defined template.
    at Function.A.error (form-builder.min.js:6)
    at Function.e.register (form-builder.min.js:6)
    at new A (form-builder.min.js:6)
    at HTMLDivElement.<anonymous> (form-builder.min.js:6)
    at Function.each (jquery-2.2.2.min.js:2)
    at n.fn.init.each (jquery-2.2.2.min.js:2)
    at form-builder.min.js:6
    at <anonymous>

These are my own fields.

                                 fields: [
                                             {
                                                 label: 'Salto de línea',
                                                 attrs: {type: 'salto_linea'}
                                             },
                                             {
                                                 label: 'Captcha',
                                                 attrs: {type: 'captcha'}
                                             }                                             
                                          ],

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
PabloManuel78commented, May 19, 2017

Spanish Ya lo he podido arreglar. Me obliga a incluir otra opción. Con esta configuración, de momento parece funcionar todo:

English I’ve already been able to fix it. It forces me to include another option. With this configuration, at the moment everything seems to work:

 fields: [
 			{
 				label: 'Salto de línea',
 				attrs: {type: 'salto_linea'}
 			},
 			{
 				label: 'Captcha',
 				attrs: {type: 'captcha'}
 			}
 		 ],
templates: {
			salto_linea: function(fieldData) {return {field: '<span></span>'};},
			captcha: function(fieldData) {return {field: '<span></span>'};}
			},				
0reactions
kevinchappellcommented, May 25, 2017

resolved by #493

Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom controls cannot be displayed - MSDN - Microsoft
Hi,. Recently the designer in my project refuses to load for all but a base custom user control that is shared between many...
Read more >
Error Creating Control - Custom Control - Stack Overflow
I am thinking many people who develop custom controls encounter this problem...The error I get is "Error Creating Control - CustomControlName" Object reference ......
Read more >
Not able to find the option "Add Custom Control" in WI creation
We have determined that this issue is not a bug. You do not add custom control during creating a work item. When you...
Read more >
Fortnite PS4 Bug: Can't make custom controls : r/FortNiteBR
I've been wanting to assign a PTT button and since I've never done custom controls I thought maybe I was just doing it...
Read more >
Any Updates on the Buggy Custom Controls? + Game ...
I customized my control layout for my Xbox Controller, and it resulted frustrating bugs that I can't fix. I was trying to copy...
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