Skip to main content
Participant
May 13, 2024
Question

Add cc email list with Submit button

  • May 13, 2024
  • 1 reply
  • 543 views

Good Morning!

 

I made a form with Submit button (added HR Email), Location, and managers name drop down button, managers email dropdown button.

I need the form to be submitted to the manager of the location based on Location selection. And I am looking for auto selection(want to hide these 2 fields) of managers name drop down button, managers email dropdown button based on location selection.

managers name drop down button, managers email dropdown button.

 

Attached image for reference.

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
May 13, 2024

You don't need two separate fields for this. Under the Manager Name drop-down apply their email addresses as the export value of each item. Then you could use a simple script for the submit, like this:

 

var managerEmail = this.getField("Manager").valueAsString;

this.mailDoc({cTo: "me@server.com", cCc: managerEmail, cSubject: "Enter email subject here"});

 

This code will send the file to a fixed address ("me@server.com") as well as a dynamic one, coming from the selection in the Manager drop-down field.

Fnu MeenuAuthor
Participant
May 13, 2024

I added one Submit Button to Send Email to HR every time. Additionally, I need to keep location manager in cc based on location selection, the manager name is populating depending upon location selection. 

 

I added actions to my Location field and Manager Name - Manager' Email Address are dependent selection based on Location Field. For example 

Location

1

2

3

4

6

I added actions with every Location selected with DropDownList1( Managers Name) and  DropDownList2 Managers Email List.

Location - Manager Name - Manager' Email Address

 1 - 1 - A

 2 - 2-B

 3 - 3- C

4, 5, 6 - 4 -D

And I tried the same way you guided me however I did not get it - 

 

try67
Community Expert
Community Expert
May 13, 2024