1

We got a build that has WFFM implementation and in a few forms we have been seeing some scripts being added to the end of the form. On all forms we see that the form doesn't load properly: I have been looking to see if I can find where it's been defined. Anyone know where I should be looking for?

enter image description here

1 Answer 1

1

You will find the code rendering those <script> tags in \Views\Form\index.cshtml:

@Html.RenderScripts(requirejs)
@Html.RenderScripts(main)

Removing these might break wffm ;)

6
  • thanks Gatogordo. here is the problem. seems to be an environment issue. We have on one server a form which we don't see those scripts getting rendered. the form works fine. on the other server the same form, with those scripts blow up. Is there an option of including/ecluding those based on a condition?
    – Diego
    Commented Nov 11, 2016 at 18:21
  • Not that I am aware.. no code in the view would suggest it either
    – Gatogordo
    Commented Nov 11, 2016 at 18:22
  • Are you sure that on the server where the scripts don't render the js files are available? Can you check the path as stated in the script src..
    – Gatogordo
    Commented Nov 11, 2016 at 19:02
  • I double checked and you are right. They were not there because there was a conflict on that file and the version was older so this is why it worked on that server. When I set the file with the same content it broke there as well. What's still not clear to me is why...
    – Diego
    Commented Nov 11, 2016 at 19:04
  • 1
    js conflict are very common with wffm.. at least your mystery is solved. Now you can start on the actual problem ;)
    – Gatogordo
    Commented Nov 11, 2016 at 19:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.