Page 1 of 1
CGFeedback Comment submission question
Posted: Wed Oct 13, 2010 8:28 pm
by kms
Hi All,
I hope this is a simple question: When I submit a comment using CGFeedback, I get the 'Thank you for your comment' message, but how do I get the comment from back, without the user having to refresh the page?
Thank you!
Re: CGFeedback Comment submission question
Posted: Sun Oct 17, 2010 12:01 am
by paulbaker
If I understand your question correctly, you need
in your {CGFeedback} call. This displays the URL which has the feedback form after the user presses the submit button (rather than a separate page). See the CGFeedback help screen for more details.
Re: CGFeedback Comment submission question
Posted: Sun Oct 17, 2010 1:49 am
by kms
OK, thanks! I'll check that out, I appreciate the help

Re: CGFeedback Comment submission question
Posted: Sun Oct 17, 2010 2:00 am
by kms
OK, I do have "policy="session", but what is happening is after the submission of a comment, I get the thank you message but the feedback form is not there. There is a setting under CGFeedback, under the "settings" tab:
Message displayed after successful comment submission
So that is what I see, the message, but no more feedback form, say for instance if the user wanted to leave another comment. Now if they refresh the page, the feedback form is there again, see what I mean? So how do I display a message but also have the feedback form still there?
Re: CGFeedback Comment submission question
Posted: Sun Oct 17, 2010 2:08 am
by paulbaker
I don't think that is possible (but I am only learning about this module, so it might be).
What I have in my "Message displayed after successful comment submission" is this at the end:
Code: Select all
<p><a href="{$page_name}">Return to the page you commented on</a>.</p>
It gives a link back to the page they made a comment on, so they can post another message if necessary.
Re: CGFeedback Comment submission question
Posted: Sun Oct 17, 2010 6:44 am
by kms
OK, thanks Paul. That's a good solution for now, thanks for sharing the idea. I'll poke a round abit more and let you know if I ever find how to get the comment form back too.
Re: CGFeedback Comment submission question
Posted: Mon Oct 18, 2010 12:15 am
by paulbaker
You're welcome.
