Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
5

Add cc email list with Submit button

Community Beginner ,
May 13, 2024 May 13, 2024

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.

TOPICS
Create PDFs , PDF forms
362
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 13, 2024 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 13, 2024 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

FnuMeenu_0-1715625002856.png

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

FnuMeenu_1-1715625402450.png

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 13, 2024 May 13, 2024
LATEST
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines