Developer forum

Forum » Ecommerce - Standard features » Detect that a review has been written

Detect that a review has been written

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

 

Is there a way to detect if the previous request was a submitted review? I am trying to open up the tab with reviews after a user has submitted a review. However, I see a post to /Default.aspx and then a redirect to the page that contained the Review form, and I see now additional details I can use.

 

Any ideas?

Thanks,

 

Imar


Replies

 
Nicolai Høeg Pedersen
Reply

You have 2 options

 

Listen to the notifications:

Notifications.Commenting.OnBeforeSave or Notifications.Commenting.OnAfterSave and set a session variable or something and look it up

or

on the comment form create a hidden field with the name "Comment.Continue" and give it a value of "CurrentUrl.aspx#comments" or something.

 

Comment.Continue will overrule the default redirect to the referrer.

 

BR Nicolai

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Cool, thanks. Either will work in our case.

 

Imar

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

I just implemented option 2 and it works great.

 

Thanks,

 

Imar

 

You must be logged in to post in the forum