Setting the Email results to field in Test Properties

krissy
krissy Community Member Posts: 37 ♪ Opening Act ♪
I have a need for the email address in the Email results to field to be set by a user.



The scenario is that the user puts in their details and depending on what they choose sets the email that the results are sent to, e.g. if they choose the HR department from a drop down list the results are sent to someone in HR and so on.



I know you can add in more than one email address in the field but is there a way of manipulating that field using variables and Java script so depending on what they select, sets the variable and then there is some code that uses the variable to set the email address in the field for Results submission.



Thanks!