Formbuilder: JavaScript does not get called?

edited January 2014 in Modules
Hi,
I have a form builder on the startpage of an advanced module - which works fine. Now I have the exact same code on a subpage of that module (lets say /name-of-module/showItems/) where it does not work anymore. The underlying javascript does not seem to get called as all the fields stay simple text fields. Firebug does not show any errors. What could be the problem here?
Many thanks in advance - it's driving me crazy!

UPDATE: I have seen that neither jquery.formbuilder.js nor custom_fields.js are getting called in the latter page. How comes?

Comments

  • edited 10:27PM
    Is this a form_builder that you've created in your own controller? If so, you'll need to be sure to load the custom fields:
    // load custom fields $this->form_builder->load_custom_fields(APPPATH.'config/custom_fields.php')
  • edited 10:27PM
    It was called twice, thanks a lot for your continues help, it is very much appreciated!
Sign In or Register to comment.