I have a form with an EmailId field, and I am attempting to validate the email in the portal. However, I am encountering an error with the function validateemailaddress(). Is there any alternative method to validate the email?
Discussion posts and replies are publicly visible
It is a part of the 'People Functions' plugin and won't work on portals. Instead, you will have to build a custom expression to check the email.
The basic condition should be that it should include 1 '@' and not more than that. It should have a domain name followed by the identifier etc.
You can also use the integration method: call an integration which connects to a Web API on your authenticated environment, and have the Web API run the plugin function for you.
Any particular reason, why plugin doesn't work in portals?
A few reasons: one is that since the portal runs as a standalone serverless web app, we'd need a technical lift to teach portals how to package up any plugins used and deploy them along with the portal. We're currently working toward that for component plugins, primarily because component plugins can't use the integration method I suggested.
Another reason is security - we would be deploying code that Appian doesn't control to a public URL, and it would be difficult to guarantee to customers that they could safely use any plugin in their portals without having vulnerabilities that could be exploited by malicious users.
If there are situations where the integration method doesn't work or is excessively onerous, please work through your Appian account team to file a use case with the Appian Product team - we're happy to learn more about which scenarios would require direct plugin support in portals.
John Rogers Thank you for sharing the information.
Thank you John.
I think we can initiate a process on the email text field by using the "validateemailaddress()" function. This function will be utilized within the process model and will return a response accordingly. The outcome can then be stored in any local variable using the "onsuccess" parameter within the "startprocess" function.
For Plugin's use the web API and Integrations for portals.