Jump to content

Recommended Posts

Emails values need to be combined separated by ";". Add a listbox to your submission page, for Display select name and for Value select email. There needs to be another field which is saving the combined email values. It can be a virtual field.

Use the code below in Footer of the page

<script type="text/javascript">
      var o_els = new Array("LISTBOX FIELD ID");   

	for (var j=0;j<o_els.length;j++){
	var fieldName = o_els[j];
	var x1=document.getElementsByName(fieldName);
function splitAndParse()
	var o_els = new Array("LISTBOX FIELD ID"); 
	var v_result = new Array("SENT TO EMAIL FIELD");
	var result = "";
	var cleanResult = "";
	for (var k=0;k<o_els.length;k++){
	result = "";
		var fieldName = o_els[k];
		var y1=document.getElementsByName(fieldName);
	  	for (var i = 0; i < y1[0].length; i++) { 
		if (y1[0].options[i].selected) { 

		result += y1[0].options[i].value+ " ; " ; 
	if (result.length > 2) { 
	cleanResult = result.substring(0,(result.length-2)); 
	document.getElementById("SENT TO EMAIL FIELD").value= cleanResult;

replace the IDs in the code above with appropriate IDs also make sure email field is not display only. This field can be used to send email to.

Link to comment
Share on other sites

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...