Life is so much better when you get an instant advice to solve your problem as you are facing it. This is precisely what Apty's on-screen Validation accomplishes. For example, validating the correct format for your email address or phone number.
In this article, we will learn how to create a Validation while generating a New Lead on Salesforce.
Use the following steps to create a Validation,
1. Login to the Apty Studio after launching it on your web browser.
2. Select SFL to open Salesforce on your browser.
Note:
|
3. On the Salesforce application, navigate to the New Lead section and then click Validations on the Apty Studio.
Note:
|
4. Click the + icon or Create New Validation button to start creating Validations.
5. Choose Element Selection from the dropdown to capture an element on the application screen.
Element Selectors for Validations |
Description |
Element Selection |
The Element Selection selector captures a web element on your application while creating Validations. Apty Studio captures the element which enables the Validation to appear directly next to the selected element. |
Custom Script |
You can identify an element using it's Custom Script which consists of attributes such as class, id, placeholder, etc. This option can be used in scenarios when there are a list of elements displayed together in some pattern on your application and you want your Validation to precisely point to only one of them. For example, selecting an element in a dropdown menu. |
CSS Selector |
The CSS Selector option is used to identify an element by it's unique id or class name. This ensures that the selector is accurate and unique to the element attached to it. |
XPath |
To increase accuracy, provide high-quality statistics, and speed up application performance, the XPath records and maintains the entire attribute path connected to an element on your application. |
6. Click Select Spotlight and then hover you cursor over the element you want to select.
7. Click the Email input field on the New Lead form.
8. In the Apty Studio, enter your Validation Name.
Note: A default Validation name will be assigned based on the element you select. However, you can modify the name according to your requirements. |
9. Click the +Add Validator button under the VALIDATORS section.
10. Select Regular expression from the dropdown.
Note: To learn more about different validation methods, see Advanced Conditions for Validations. |
11. Add the regular expression as shown below to authenticate the user's email id and then include an error message for when a user submits an incorrect email id.
^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,5})$
12. Select a position for your Validation icon to appear on your application.
Info: You can also customize your Validation Icon offset and choose to show or hide the icon. |
13. Select your Validation theme and appearance from the dropdown.
Info: By default three theme options are provided for Apty Validations:
To learn how to create new themes, see Themes (Version 4.x). |
14. Click Save.
Once you create a Validation, you can make it accessible for your end users by publishing it either through the Admin Portal or the Apty Studio.
For more information, see
Note:
|
Comments
0 comments
Please sign in to leave a comment.