We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42766
    • 47 Posts
    I have a number of forms created in FormItBuilder and I'm using FormSave as a hook to save the results to a database. This is working well, but FormSave has a custom setting which is usually passed in via the FormIt call: &fsFormTopic=`contact`

    I can't for the life of me figure out how to tell FormItBuilder to pass this setting into FormIt.

    Is anyone aware of a way?
      • 45069
      • 22 Posts
      I do not use Formbuilder but I may say how I changed that fsFormTopic when I have a FormIt whith FormSave.
      I made a hook which is called before FormSave.
      My hooks param of formit looks like:
      &hooks=`contactFormPreSaveHook,FormSave,email,redirect`

      In that 'contactFormPreSaveHook' I change the fsFormTopic as I need :

      $formit =& $hook->formit;

      ...

      $formit->config['fsFormTopic'] = 'MY wanted one';

      FormBuilder has also hook parameter and you may add an own hook where I assume you may do as above and thus also the fsFormTopic will be set.

      Maybe it worth to try something similar.