Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Angelo 111 posts 260 karma points
    Oct 06, 2018 @ 12:11
    Angelo
    0

    2 instances of formulate same page

    hello Nicholas

    im having problems rendering 2 or instances of formulate on the same page if you check source code of this page you can see 2 instances

    link

    i think every thing is ok but it only renderes one form ... am i doing something worng ?

    thank you

  • Nicholas Westby 2054 posts 7103 karma points c-trib
    Oct 06, 2018 @ 17:05
    Nicholas Westby
    100

    Just looked at it quickly, but what immediately stuck out is that you have ng-app in your markup twice. You can't do that; AngularJS won't allow it.

    You should have ng-app on some common ancestor element of all of the forms. For example, you could put it on the body element.

  • Angelo 111 posts 260 karma points
    Oct 08, 2018 @ 08:19
    Angelo
    0

    Perfect :) ...

    sorry for the stupid question ...but not a huge fan of angular nor undertstand very much of it :(

    Thank you Nicholas once again

    Angelo

  • Nicholas Westby 2054 posts 7103 karma points c-trib
    Oct 08, 2018 @ 14:22
    Nicholas Westby
    1

    Not a stupid question at all, and AngularJS can be a pain to understand at times.

    FYI, the plain JavaScript template is included with the latest version of Formulate. Might be a good alternative if you want to avoid AngularJS. This page shows how to render the plain JavaScript template: http://www.formulate.rocks/plain-javascript/render-form

Please Sign in or register to post replies

Write your reply to:

Draft