Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
16 replies
Subscribers
7 subscribers
Views
8639 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Hi I have a requirement where users want to enter an email address fo
paulc919
over 9 years ago
Hi
I have a requirement where users want to enter an email address for a document to be emailed to. They also want to have a second entry to confirm that the email address typed matches that in the first email address box.
Is there a way of preventing pasted values from being entered into a text box ?
As an aside, does anyone know if there is a way to validate if an email address exists ? Reason for asking is that we are getting a lot of miskeyed / incorrect email addresses being used resulting in failed delivery messages.
Many thanks
Paul
OriginalPostID-160236
OriginalPostID-160236
Discussion posts and replies are publicly visible
Top Replies
Stefan Helzle
over 9 years ago
+1
A Score Level 3
Preventing a user from pasting text would need some special JavaScript. This is not supported. Email address validation is special topic. You can do that using regular expressions. Google will help you…
0
marco.molteni
Appian Employee
over 9 years ago
Hi Paul,
You can validate the email address with this expression (read from the end):
forum.appian.com/.../b-50780
I don't think you can prevent to past values.
Cancel
Vote Up
-1
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sumitp584
over 9 years ago
You can use regex() to validate if the email id is entered properly.
If you send mails only to person within Appian then you can validate the existence of the email id by comparing it with the username properties.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Stefan Helzle
A Score Level 3
over 9 years ago
Preventing a user from pasting text would need some special JavaScript. This is not supported.
Email address validation is special topic. You can do that using regular expressions. Google will help you on that. BUT ... a syntactically correct email address may still be wrong in terms of the user does not exist or domain is wrong or .. or ...
Cancel
Vote Up
+1
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Mike Schmitt
Certified Lead Developer
over 9 years ago
Hi Paul,
I have previously shared an Appian expression rule that can be used to validate that a particular string is a proper e-mail address strictly in terms of formatting (thanks Marco for linking my old thread). I can provide clarification on the use of this rule if needed.
After that, there's no way (within appian or any other email system I'm aware of) to validate that an address actually exists other than attempting to send it. This is more of a technical limitation of e-mail, than any sort of limitation of Appian.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Stefan Helzle
A Score Level 3
over 9 years ago
Thanks for that expression :-) BTW: Is a email returned to the running process if sent from process instance? This way that process could wait a few minutes for returning errors and show that to the user.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Mike Schmitt
Certified Lead Developer
over 9 years ago
You mean like a failure notification? I'm not totally sure, but maybe something could be accomplished by setting the "sender" as the process instance and then creating an email listener - but I've never really tried anything related to that so I'm not sure of the feasibility.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Stefan Helzle
A Score Level 3
over 9 years ago
OK. Have to try that.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
paulc919
over 9 years ago
this is all handy info - many thanks. We have emails going outside our organisation so I think a domain checker API would be the way to go (subject to costs) - but again thanks for the tips
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
paulc919
over 9 years ago
ARGGHH ... I'll have to try accessing that link from home as the URL is banned by my organisation
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Stefan Helzle
A Score Level 3
over 9 years ago
See the code here
emailValidation.txt
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
>