Jump to:

2011 Posts in 1436 Topics by 620 members

Form Questions

SilverStripe Forums » Form Questions » Behaviour.register : Form Initialize called twice

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 263 Views
  • ccordina
    Avatar
    Community Member
    2 Posts

    Behaviour.register : Form Initialize called twice Link to this post

    I am running Silverstripe 2.4 and i'm having an issue with this :

    Behaviour.register({
    '#Form_EditForm' : {
    initialize : function() {
    ....

    When i click save & publish or save the initialize is running twice... can anybody suggest any possible solution to this problem?

    The js is included in a separate file and being included using Requirements::javascriptTemplate and its only being included once...

    Any ideas??

    263 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.