Pass form values to PostPage via URL suffix
Hi there,
Is it possible to pass the search bar contents to the subject box when a user clicks a link to post to a forum?
Thanks,
Lionel
There's a related discussion on how to perform passing the parameter using jQuery: https://community.lithium.com/t5/Support-Forum/Pass-form-values-to-PostPage-via-URL-suffix/m-p/299284#M11630
But there is actually a URL parameter as well which works both on the "New Post" as well as the "Choose Node" experience (and it comes free out of the box):
message-subject=<subject>
appended to the query string of each of these URLs allows you pre-populate the subject line, e.g.
or
allows you to have the subject field already filled.
But take the good advice from Wendy_S and really think through the posting user flow:
I know that on the Skype Community this was used for a while on the "Didn't find what you were looking for? Post a new question" flow. If your posting experience can't make it clear that the pre-populated subject line is just a starting point and should be edited by the member, you are likely to end up with many identically named topics. As a result your moderators have to go in and edit the topic titles to keep the board listing relevant.