Jump to content
DevFuse Forums
Sign in to follow this  
tomtucka

Forms Plugin

Recommended Posts

Hi,

I have purchased the forms plugin off the market place, Is it possible to create multiple topics from one form submission? If not is there anyway I could do this?

 

Cheers

Tom

Share this post


Link to post
Share on other sites
3 hours ago, tomtucka said:

I have purchased the forms plugin off the market place, Is it possible to create multiple topics from one form submission? If not is there anyway I could do this?

No not currently. Were you looking to create identical topics or something else in mind?

Share this post


Link to post
Share on other sites
7 hours ago, Michael said:

No not currently. Were you looking to create identical topics or something else in mind?

Identical topics with different names if possible 

Edited by tomtucka

Share this post


Link to post
Share on other sites
On 1/17/2020 at 7:10 PM, tomtucka said:

Identical topics with different names if possible 

Different names won't be possible with out more substantial changes but here is a patch to get it to have multiple topics.

Open applications/form/sources/Log/Log.php

Find and copy this code.

        /* Create topic alert */
        if( $topic = \IPS\form\Alerts::_createTopic( $this, $topicSettings, $member, $this->container(), $tags ) )
        {
            /* Save topic id */
            $this->topic = $topic;
        }

e.g.

        /* Create topic alert */
        if( $topic = \IPS\form\Alerts::_createTopic( $this, $topicSettings, $member, $this->container(), $tags ) )
        {
            /* Save topic id */
            $this->topic = $topic;
        }

        /* Create topic alert */
        if( $topic = \IPS\form\Alerts::_createTopic( $this, $topicSettings, $member, $this->container(), $tags ) )
        {
            /* Save topic id */
            $this->topic = $topic;
        } 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...