I’ve used the free version of your plugin before and it was really simple to fill in recipient input using JS by setting up values to certain inputs on click. That was my code:
$(document).on(‘click’,’.recipients-list span’, function(){
$recipientname = $(this).html();
$recipientnick = $(this).attr(‘data-nickname’);
$(‘#fep-message-top’).val($recipientname );
$(‘#fep-message-to’).val($recipientnick );
});
Now, with the PRO version, I get “You must enter valid recipient!” error (screen: https://gyazo.com/9d511745db93e13e8789f7aa9065fdcd) despite I prepend
“<li class=”token-input-token-facebook”><p>’+$recipientname+'</p><span class=”token-input-delete-token-facebook”>×</span>” before .token-input-input-token-facebook as it’s done after I type it manually in the dropdown list – I guess the condition whether recipient is filled in or not triggers via ajax, could you help me with this? How can I improve my code now with the PRO version? That’s really important, I don’t want my users to type recipients manually.
And btw I bought your plugin only because of the following bug – site url is missing in the email template when I get a new message – it starts with message page URL (check below) and as you don’t allow to edit email templates in the free version I was forced to buy your plugin to face to another problem.
Please help me either to fix the following bug or trigger filling recipient input on click without typing it manually.
Email template:
“Website name”
From: kestioadmin
Subject: Subject
Please Click the following link to view full Message.
/en/my-account/messages?fepaction=messagebox