11-15-2018 04:49 PM
In self-registration portal, there are person to be visited (Sponsor's email) and visitor email column. However, there is a request in my site where the sponsor does not want to the approved email to be sent directly to the Guest. The want the email to be sent to Sponsor as well.
What I can think here is to modify the name of visitor email column. Understood that we can configure to allow only the guest from the particular email domain, thus we can configure it as sponsor email domain. However, how can we make it that the entry must be identical with the sponsor email? So that guest will not key in email 1 at sponsor email column and key in email 2 at the visitor email column.
Solved! Go to Solution.
11-16-2018 09:50 AM
11-15-2018 07:19 PM
What if you do following?
Modify the name as required:
11-15-2018 07:37 PM
This is the one approval request email. What I mean is after approval, the email with user credential, the client want it to be sent to the sponsor as well, not directly to the guest.
11-16-2018 03:37 AM
11-16-2018 05:40 AM - edited 11-16-2018 09:15 AM
As Jason said you can't send email to both (Jason feature request... I know talk to product management), but you can send everything to sponsor. I do that all the time because the guest may not be able to receive emails because they don't have Internet access.
What I have done in the past is this:
Then on the registration form customization in the Optional content 2 area I add the following:
<script>
$("[name='selfRegForm']").focusin(function(){
$("input[name='guestUser.fieldValues.ui_person_visited']").closest(".ui-field-contain").hide();
});
$("[name='selfRegForm']").submit(function(){
$("input[name='guestUser.fieldValues.ui_person_visited']").val($("input[name='guestUser.fieldValues.ui_email_address']").val());
});
</script>
The script does two things:
11-16-2018 09:50 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide