Hi, I have created a form with several contact selectors. I can search for the contact fine. But I don't seem to be able to use the results of the query.
My structure is....
group1
Person
DisplayName
AccountId
AccountType
AD
AccountVal
On submit I want to email the selected contact. In the submit data connection I choose group1 as the To field. On submit I get an error The following addresses did not resolve in the To line: Ormerod, Catharine DTIN\OrmerC User I presume I am using the wrong field - but none of the other fields holds the email address which should be in the form ([email protected]). What am I doing wrong ?
I do have a webservice which will get the correct e-mail address if it is given the username BUT for that to work I have to separate the domain from the username in AccoundId. I have not been able to do that either.....
I tried a couple of things...
1. Adding a field (AD) to the Person Repeating group. (The Contact Selector still worked with the additional field). I put a default value of sub substring-after(AccountId, "DTIN\") - but this did not return any value at all - I also added a rule to AccountId to set the value of AD - again nothing happened
2. Adding a field (AccountVal) outside the Person repeating group. + a rule on AccountId which sets the value of AccountVal
I have finally been able to separate off the username by putting a rule on group1 which sets the value of AccountVal. I am worried that this will crash if the user selects more than one contact. - Is this the only way to do it ? Why did my other attempts not work.
Thank you for reading
Catharine