ctml since I'm trying to leverage this for notifications, my goal is to have the actual discussion post content have all fields inside the post. I understand that is probably not how it works today, however see an option to generate discussion automatically with form submission.
Questions:
To do this, am I correct that I will have to navigate to the form directly instead of using the discussion composer?
- if yes, it would be nice to have a method to navigate directly from the tag. for example, add an option to remove the "start discussion" button and instead add a button for the form with custom text (e.g. "Submit request"), so there would be an entry point for each form from the respective tags page.
To generate the post content with the actual field data, I am inserting the slug fields { slug }
using the braces. Some fields don't translate well though, for example long text appears as raw html.
<t><p>test</p></t>
<t><p>test</p></t>
And checkboxes show as "Array", though it would be ideal for the select items to be shown.
- Since my goal is to have the regular flarum notifications/emails include the content of the form in it, I need to basically duplicate all the fields into the discussion post using every slug. If I am able to do this successfully, one problem remaining is that I will have two copies of the information shown on the post - those being the added fields above the post, and then the ones added the post body.
One solution could be to have one of the two hidden, this way only 1 is visible from the forum interface but the post content would still be available for forum notifications.
An alternative would be if formulaire could instead embed the fields directly into the post as an extension option instead of above the post.
- If post new discussion automatically is enabled, it could also be useful to have update discussion when submission is edited. This would have an effect of editing/updating the post with the updated post content.