springhigh wrote:Thank you so much Amos
Is there a way to check if a specific list of domains is allowed , maybe referencing a text file?
In our case we only want to allow 2 email domains, ( or alternatively a list of specific email address's, approx 50 emails )
The easiest way to handle this is to create a PM Table named PMT_ALLOWED_EMAILS with the list of allowed addresses in an EMAIL field. Then, create a dropdown box in the Dynaform with an SQL query like:
Code: Select all
SELECT EMAIL, CONCAT(NAME, ' <', EMAIL, '>') FROM PMT_ALLOWED_EMAILS
If you just want to check for two domains, then use a regular expression like this:
Amos B. Batto ♦ ProcessMaker Forum Manager since 2009