Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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
5
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 -
Copy link to clipboard
Copied
Questions about Adobe AEM/LiveCycle should be asked here: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/ct-p/adobe-experience-mana...