Refresh the page after sending message

Can you provide some PHP code that will refresh the page after sending a message so the new message will appear in the conversation? and even if you can let me know how can I make it ajax it could be better.

And also, please can you provide some PHP code that can show in the message popup on the listing page the success text with a link to the conversation page “the message was sent successfully if you want to see the conversation click here” and the link will take the visitor to conversation page.

Unfortunately there’s no simple snippet for this, this would probably require JS customizations. We plan to improve this in the next Messages update, a new message will be inserted into the conversation without a page refresh. Inserting a dynamic link into a message modal also requires PHP customizations.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.