Formio - How to add Javascript from the Builder? (runs 2 times or more)

122 views Asked by At

I am using the **Formio **Plugin. What is the correct way to add "Javascript" to the Builder?

I tried this and other ways:

  • I created a "Text Field" component.

image1

  • I placed a "Console.log" in "Custom Default".

image2

image3

  • Finally, when I save my form, I open it and my console shows my console.log 2 times :(

image4

Why did this happened? I've tried reading the documentation, but I'm having a bit of a hard time understanding it. I hope someone can see this. I thank you very much!!

0

There are 0 answers