• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Link to new post and autofill values

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello! I apologize if this is a basic question, but I really did try searching and didn't find anything...

I would like to be able to create a link from a separate web application to a new post in our company's JForum. That's easy enough:

http://www.domain.com/jforum/jforum.page?module=posts&action=insert&forum_id=11

However, I would also like to pre-populate/autofill some values (the subject and message body, to be specific) in the new post. Here's what's going on. There is a feedback link in a web app that we're using, and I am able to pull certain values from the page (such as the url, page title, etc.). I would like to be able to organize feedback posts in our JForum based on the page title and URL. If nothing else, I would like this information to be in the message body of the post so that it is apparent which page the user is commenting on.

Is there a way to structure the request URL so that fields are pre-populated/autofilled? ...some other way of accomplishing this?

Thank you!

-Kyle
[originally posted on jforum.net by KRabe]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A couple of thoughts here:

First, if you're allowing anonymous posting in the forum this form is posting to, you probably can create your own custom form who's action is the jForum insert a new topic action. Just look at the source of a new topic form to get the fields needed (especially the hidden fields).

Second, an alternative would be to modify the new topic template files with some Javascript that would take query string parameters and populate the form fields with what you want. Maybe even make the subject R/O so the use can't change it.
[originally posted on jforum.net by monroe]
 
reply
    Bookmark Topic Watch Topic
  • New Topic