Hi PerBonomi,
In your component code, you are calling the POST call to clear fields on mouseenter. It might possible, the page redirect (on button click) can happen before success of post call since both activities are asynchronous. This is why custom field is not clearing and displaying the user details on the other user page eventhough user not replying.
Call the post call on submit and wait untill endpoint returns success. Then perform form default action. This way the data for sure will get clear from custom field.
Example code:
$('input.lia-button-Submit-action, input.lia-button-Cancel-action').bind('click', function(e) {
e.preventDefault();
var formEle = $(this).parents().find('.MessageEditorForm');
$.post('Endpoint URL?id=${msg_id}',function(){
$(formEle).submit();
});
});
Hope this helps!
Thanks,
Phani