Transfer a Form to a Forum
Quote from thefallen47 on May 7, 2019, 7:49 amI’m trying to make a Application out of form and once they hit submit, I want it to got to a certain forum topic. Im not sure if you able to do this or how much work it would be but it would be greatly appreciated.
I’m trying to make a Application out of form and once they hit submit, I want it to got to a certain forum topic. Im not sure if you able to do this or how much work it would be but it would be greatly appreciated.
Quote from Asgaros on May 7, 2019, 3:57 pmHello @thefallen47
Unfortunately, such an implementation is not possible without adding a custom implementation because as far as I understand you want to combine two completely different systems (an own form which sends the input to the forum).
If you have coding-experience you should be able to add the content of the form – after processing it to some text – as a topic by using the following function:
global $asgarosforum; $asgarosforum->content->insert_topic($forum_id, $name, $text, $author_id, $uploads);After it you have to make a redirect to this topic by using the wp_redirect() function:
https://developer.wordpress.org/reference/functions/wp_redirect/
Hello @thefallen47
Unfortunately, such an implementation is not possible without adding a custom implementation because as far as I understand you want to combine two completely different systems (an own form which sends the input to the forum).
If you have coding-experience you should be able to add the content of the form – after processing it to some text – as a topic by using the following function:
global $asgarosforum; $asgarosforum->content->insert_topic($forum_id, $name, $text, $author_id, $uploads);
After it you have to make a redirect to this topic by using the wp_redirect() function:
https://developer.wordpress.org/reference/functions/wp_redirect/